LocatorPrxPtr ICE_OBJECT_PRX::ice_getLocator() const { LocatorInfoPtr ri = _reference->getLocatorInfo(); #ifdef ICE_CPP11_MAPPING return ri ? ri->getLocator() : nullptr; #else return ri ? ri->getLocator() : LocatorPrxPtr(); #endif }