Skip to content

Commit 3eb97c8

Browse files
committed
More sadfaces!
1 parent 34742c2 commit 3eb97c8

2 files changed

Lines changed: 24 additions & 25 deletions

File tree

indra/newview/fsfloatersearch.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ void FSFloaterSearch::onTabChange()
380380

381381
//static
382382
template <class T>
383-
T* FSFloaterSearch::getSearchPanel(const std::string& panel_name)
383+
T* FSFloaterSearch::getSearchPanel(std::string_view panel_name)
384384
{
385385
FSFloaterSearch* search_instance = LLFloaterReg::findTypedInstance<FSFloaterSearch>("search");
386386
if (search_instance && search_instance->mTabContainer)

indra/newview/fsfloatersearch.h

Lines changed: 23 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ class FSSearchPanelBase : public LLPanel
6868
{
6969
public:
7070
FSSearchPanelBase() : LLPanel() { }
71-
virtual ~FSSearchPanelBase() { }
71+
virtual ~FSSearchPanelBase() = default;
7272
virtual void focusDefaultElement() { }
7373
};
7474

@@ -79,14 +79,14 @@ class FSPanelSearchPeople : public FSSearchPanelBase
7979
FSPanelSearchPeople();
8080
static void processSearchReply(LLMessageSystem* msg, void**);
8181

82-
/*virtual*/ void focusDefaultElement();
82+
void focusDefaultElement() override;
8383

8484
protected:
8585
const S32& getNumResultsReturned() const { return mNumResultsReturned; };
8686
const S32& getNumResultsReceived() const { return mResultsReceived; };
8787

8888
private:
89-
/*virtual*/ bool postBuild();
89+
bool postBuild() override;
9090
virtual ~FSPanelSearchPeople();
9191

9292
void onBtnFind();
@@ -122,10 +122,10 @@ class FSPanelSearchGroups : public FSSearchPanelBase
122122
FSPanelSearchGroups();
123123
static void processSearchReply(LLMessageSystem* msg, void**);
124124

125-
/*virtual*/ void focusDefaultElement();
125+
void focusDefaultElement() override;
126126

127127
private:
128-
/*virtual*/ bool postBuild();
128+
bool postBuild() override;
129129
virtual ~FSPanelSearchGroups();
130130

131131
void onBtnFind();
@@ -156,10 +156,10 @@ class FSPanelSearchPlaces : public FSSearchPanelBase
156156
FSPanelSearchPlaces();
157157
static void processSearchReply(LLMessageSystem* msg, void**);
158158

159-
/*virtual*/ void focusDefaultElement();
159+
void focusDefaultElement() override;
160160

161161
private:
162-
/*virtual*/ bool postBuild();
162+
bool postBuild() override;
163163
virtual ~FSPanelSearchPlaces();
164164

165165
void onBtnFind();
@@ -192,7 +192,7 @@ class FSPanelSearchLand : public FSSearchPanelBase
192192
static void processSearchReply(LLMessageSystem* msg, void**);
193193

194194
private:
195-
/*virtual*/ bool postBuild();
195+
bool postBuild() override;
196196
virtual ~FSPanelSearchLand();
197197

198198
void onBtnFind();
@@ -224,10 +224,10 @@ class FSPanelSearchClassifieds : public FSSearchPanelBase
224224
FSPanelSearchClassifieds();
225225
static void processSearchReply(LLMessageSystem* msg, void**);
226226

227-
/*virtual*/ void focusDefaultElement();
227+
void focusDefaultElement() override;
228228

229229
private:
230-
/*virtual*/ bool postBuild();
230+
bool postBuild() override;
231231
virtual ~FSPanelSearchClassifieds();
232232

233233
void onBtnFind();
@@ -259,10 +259,10 @@ class FSPanelSearchEvents : public FSSearchPanelBase
259259
FSPanelSearchEvents();
260260
static void processSearchReply(LLMessageSystem* msg, void**);
261261

262-
/*virtual*/ void focusDefaultElement();
262+
void focusDefaultElement() override;
263263

264264
private:
265-
/*virtual*/ bool postBuild();
265+
bool postBuild() override;
266266
virtual ~FSPanelSearchEvents();
267267

268268
void onBtnFind();
@@ -298,19 +298,18 @@ class FSPanelSearchWeb : public FSSearchPanelBase
298298
LOG_CLASS(FSFloaterSearch);
299299
public:
300300
FSPanelSearchWeb();
301-
/*virtual*/ bool postBuild();
301+
bool postBuild() override;
302302
void loadURL(const SearchQuery &query);
303-
/*virtual*/ void focusDefaultElement();
304-
/*virtual*/ void draw();
303+
void focusDefaultElement() override;
304+
void draw() override;
305305
void resetFocusOnLoad() { mResetFocusOnLoad = true; }
306306

307307
private:
308308
virtual ~FSPanelSearchWeb() {};
309309

310-
LLMediaCtrl* mWebBrowser;
311-
LLSD mCategoryPaths;
312-
313-
bool mResetFocusOnLoad;
310+
LLMediaCtrl* mWebBrowser;
311+
LLSD mCategoryPaths;
312+
bool mResetFocusOnLoad;
314313
};
315314

316315
class FSFloaterSearch : public LLFloater
@@ -334,8 +333,8 @@ class FSFloaterSearch : public LLFloater
334333

335334
FSFloaterSearch(const Params& key);
336335
~FSFloaterSearch();
337-
void onOpen(const LLSD& key);
338-
bool postBuild();
336+
void onOpen(const LLSD& key) override;
337+
bool postBuild() override;
339338

340339
void avatarNameUpdatedCallback(const LLUUID& id, const LLAvatarName& av_name);
341340
void groupNameUpdatedCallback(const LLUUID& id, const std::string& name, bool is_group);
@@ -350,11 +349,11 @@ class FSFloaterSearch : public LLFloater
350349
void setLoadingProgress(bool started);
351350

352351
template <class T>
353-
static T* getSearchPanel(const std::string& panel_name);
352+
static T* getSearchPanel(std::string_view panel_name);
354353

355354
private:
356-
virtual void onClose(bool app_quitting);
357-
const LLUUID& getSelectedID() { return mSelectedID; }
355+
void onClose(bool app_quitting) override;
356+
const LLUUID& getSelectedID() const { return mSelectedID; }
358357
LLVector3d mParcelGlobal;
359358
LLUUID mSelectedID;
360359
U32 mEventID;

0 commit comments

Comments
 (0)