Skip to content
Snippets Groups Projects
Commit e89ee06c authored by Rye Mutt's avatar Rye Mutt :bread:
Browse files

override virtual warnings

parent 01ddaf22
No related branches found
No related tags found
No related merge requests found
...@@ -92,7 +92,7 @@ class LLComboBox ...@@ -92,7 +92,7 @@ class LLComboBox
virtual ~LLComboBox(); virtual ~LLComboBox();
/*virtual*/ BOOL postBuild(); /*virtual*/ BOOL postBuild() override;
protected: protected:
friend class LLUICtrlFactory; friend class LLUICtrlFactory;
...@@ -102,29 +102,29 @@ class LLComboBox ...@@ -102,29 +102,29 @@ class LLComboBox
public: public:
// LLView interface // LLView interface
virtual void onFocusLost(); void onFocusLost() override;
virtual BOOL handleToolTip(S32 x, S32 y, MASK mask); BOOL handleToolTip(S32 x, S32 y, MASK mask) override;
virtual BOOL handleKeyHere(KEY key, MASK mask); BOOL handleKeyHere(KEY key, MASK mask) override;
virtual BOOL handleUnicodeCharHere(llwchar uni_char); BOOL handleUnicodeCharHere(llwchar uni_char) override;
BOOL handleScrollWheel(S32 x, S32 y, S32 clicks) final override; BOOL handleScrollWheel(S32 x, S32 y, S32 clicks) final override;
// LLUICtrl interface // LLUICtrl interface
virtual void clear(); // select nothing void clear() override; // select nothing
virtual void onCommit(); void onCommit() override;
virtual BOOL acceptsTextInput() const { return mAllowTextEntry; } BOOL acceptsTextInput() const override { return mAllowTextEntry; }
virtual BOOL isDirty() const; // Returns TRUE if the user has modified this control. BOOL isDirty() const override; // Returns TRUE if the user has modified this control.
virtual void resetDirty(); // Clear dirty state void resetDirty() override; // Clear dirty state
virtual void setFocus(BOOL b); void setFocus(BOOL b) override;
// Selects item by underlying LLSD value, using LLSD::asString() matching. // Selects item by underlying LLSD value, using LLSD::asString() matching.
// For simple items, this is just the name of the label. // For simple items, this is just the name of the label.
virtual void setValue(const LLSD& value ); void setValue(const LLSD& value) override;
// Gets underlying LLSD value for currently selected items. For simple // Gets underlying LLSD value for currently selected items. For simple
// items, this is just the label. // items, this is just the label.
virtual LLSD getValue() const; LLSD getValue() const override;
void setTextEntry(const LLStringExplicit& text); void setTextEntry(const LLStringExplicit& text);
void setKeystrokeOnEsc(BOOL enable); void setKeystrokeOnEsc(BOOL enable);
...@@ -164,34 +164,34 @@ class LLComboBox ...@@ -164,34 +164,34 @@ class LLComboBox
void createLineEditor(const Params&); void createLineEditor(const Params&);
//======================================================================== //========================================================================
LLCtrlSelectionInterface* getSelectionInterface() { return (LLCtrlSelectionInterface*)this; }; LLCtrlSelectionInterface* getSelectionInterface() override { return (LLCtrlSelectionInterface*)this; };
LLCtrlListInterface* getListInterface() { return (LLCtrlListInterface*)this; }; LLCtrlListInterface* getListInterface() override { return (LLCtrlListInterface*)this; };
// LLCtrlListInterface functions // LLCtrlListInterface functions
// See llscrolllistctrl.h // See llscrolllistctrl.h
virtual S32 getItemCount() const; S32 getItemCount() const override;
// Overwrites the default column (See LLScrollListCtrl for format) // Overwrites the default column (See LLScrollListCtrl for format)
virtual void addColumn(const LLSD& column, EAddPosition pos = ADD_BOTTOM); void addColumn(const LLSD& column, EAddPosition pos = ADD_BOTTOM) override;
virtual void clearColumns(); void clearColumns() override;
virtual void setColumnLabel(const std::string& column, const std::string& label); void setColumnLabel(const std::string& column, const std::string& label) override;
virtual LLScrollListItem* addElement(const LLSD& value, EAddPosition pos = ADD_BOTTOM, void* userdata = NULL); LLScrollListItem* addElement(const LLSD& value, EAddPosition pos = ADD_BOTTOM, void* userdata = NULL) override;
virtual LLScrollListItem* addSimpleElement(const std::string& value, EAddPosition pos = ADD_BOTTOM, const LLSD& id = LLSD()); LLScrollListItem* addSimpleElement(const std::string& value, EAddPosition pos = ADD_BOTTOM, const LLSD& id = LLSD()) override;
virtual void clearRows(); void clearRows() override;
virtual void sortByColumn(const std::string& name, BOOL ascending); void sortByColumn(const std::string& name, BOOL ascending) override;
// LLCtrlSelectionInterface functions // LLCtrlSelectionInterface functions
virtual BOOL getCanSelect() const { return TRUE; } BOOL getCanSelect() const override { return TRUE; }
virtual BOOL selectFirstItem() { return setCurrentByIndex(0); } BOOL selectFirstItem() override { return setCurrentByIndex(0); }
virtual BOOL selectNthItem( S32 index ) { return setCurrentByIndex(index); } BOOL selectNthItem( S32 index ) override { return setCurrentByIndex(index); }
virtual BOOL selectItemRange( S32 first, S32 last ); BOOL selectItemRange(S32 first, S32 last) override;
virtual S32 getFirstSelectedIndex() const { return getCurrentIndex(); } S32 getFirstSelectedIndex() const override { return getCurrentIndex(); }
virtual BOOL setCurrentByID( const LLUUID& id ); BOOL setCurrentByID( const LLUUID& id ) override;
virtual LLUUID getCurrentID() const; // LLUUID::null if no items in menu LLUUID getCurrentID() const override; // LLUUID::null if no items in menu
virtual BOOL setSelectedByValue(const LLSD& value, BOOL selected); BOOL setSelectedByValue(const LLSD& value, BOOL selected) override;
virtual LLSD getSelectedValue(); LLSD getSelectedValue() override;
virtual BOOL isSelected(const LLSD& value) const; BOOL isSelected(const LLSD& value) const override;
virtual BOOL operateOnSelection(EOperation op); BOOL operateOnSelection(EOperation op) override;
virtual BOOL operateOnAll(EOperation op); BOOL operateOnAll(EOperation op) override;
//======================================================================== //========================================================================
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment