diff --git a/indra/newview/jcfloaterareasearch.h b/indra/newview/jcfloaterareasearch.h index 32c40c253..033dc22ad 100644 --- a/indra/newview/jcfloaterareasearch.h +++ b/indra/newview/jcfloaterareasearch.h @@ -56,6 +56,20 @@ public: void results(); static void processObjectPropertiesFamily(LLMessageSystem* msg, void** user_data); + struct ObjectData + { + LLUUID id; + std::string name; + std::string desc; + LLUUID owner_id; + LLUUID group_id; + }; + + const ObjectData* getObjectData(const LLUUID& id) const + { + const auto& it = mCachedObjects.find(id); + return it != mCachedObjects.end() ? &it->second : nullptr; + } private: @@ -84,14 +98,6 @@ private: LLViewerRegion* mLastRegion; bool mStopped; - struct ObjectData - { - LLUUID id; - std::string name; - std::string desc; - LLUUID owner_id; - LLUUID group_id; - }; uuid_set_t mPendingObjects; boost::unordered_map mCachedObjects;