diff options
| author | Rider Linden <rider@lindenlab.com> | 2025-10-07 15:46:54 -0700 |
|---|---|---|
| committer | Rider Linden <rider@lindenlab.com> | 2025-10-07 15:46:54 -0700 |
| commit | 0f92f2a6b1924582f5a9ada25565f7c374aeb05d (patch) | |
| tree | 0682b6f1128bb74f998544dd706883df182eb776 | |
| parent | 5f9dd148999d75301f0ece224aeff8c2ad55b338 (diff) | |
Fixed some virtual/override disagreements.
| -rw-r--r-- | indra/newview/llpreviewscript.h | 40 | ||||
| -rw-r--r-- | indra/newview/llscripteditor.h | 12 |
2 files changed, 26 insertions, 26 deletions
diff --git a/indra/newview/llpreviewscript.h b/indra/newview/llpreviewscript.h index 168ba1e8ad..802d0e12fe 100644 --- a/indra/newview/llpreviewscript.h +++ b/indra/newview/llpreviewscript.h @@ -62,12 +62,12 @@ public: typedef boost::function<bool(const std::string& filename)> change_callback_t; LLLiveLSLFile(std::string file_path, change_callback_t change_cb); - ~LLLiveLSLFile(); + ~LLLiveLSLFile() override; void ignoreNextUpdate() { mIgnoreNextUpdate = true; } protected: - /*virtual*/ bool loadFile(); + bool loadFile() override; change_callback_t mOnChangeCallback; bool mIgnoreNextUpdate; @@ -143,7 +143,7 @@ public: static bool enableSaveToFileMenu(void* userdata); static bool enableLoadFromFileMenu(void* userdata); - virtual bool hasAccelerators() const { return true; } + bool hasAccelerators() const override { return true; } LLUUID getAssociatedExperience()const; void setAssociatedExperience( const LLUUID& experience_id ); @@ -154,11 +154,11 @@ public: void setAssetID( const LLUUID& asset_id){ mAssetID = asset_id; }; LLUUID getAssetID() const { return mAssetID; } - bool isFontSizeChecked(const LLSD &userdata); - void onChangeFontSize(const LLSD &size_name); + bool isFontSizeChecked(const LLSD &userdata); + void onChangeFontSize(const LLSD &size_name); - virtual bool handleKeyHere(KEY key, MASK mask); - void selectAll() { mEditor->selectAll(); } + bool handleKeyHere(KEY key, MASK mask) override; + void selectAll() { mEditor->selectAll(); } void enableSave(bool b) { mEnableSave = b; } bool hasChanged() const; @@ -218,9 +218,9 @@ class LLScriptEdContainer : public LLPreview public: LLScriptEdContainer(const LLSD& key); - virtual ~LLScriptEdContainer(); + ~LLScriptEdContainer() override; - bool handleKeyHere(KEY key, MASK mask); + bool handleKeyHere(KEY key, MASK mask) override; void startWebsocketServer(); void unsubscribeScript(); @@ -249,7 +249,7 @@ class LLPreviewLSL : public LLScriptEdContainer { public: LLPreviewLSL(const LLSD& key ); - ~LLPreviewLSL(); + ~LLPreviewLSL() override; LLUUID getScriptID() { return mItemUUID; } @@ -258,15 +258,15 @@ public: virtual void callbackLSLCompileSucceeded(); virtual void callbackLSLCompileFailed(const LLSD& compile_errors); - /*virtual*/ bool postBuild(); + bool postBuild() override; protected: - virtual void draw(); - virtual bool canClose(); + void draw() override; + bool canClose() override; void closeIfNeeded(); - virtual void loadAsset(); - /*virtual*/ void saveIfNeeded(bool sync = true); + void loadAsset() override; + void saveIfNeeded(bool sync = true) override; void onCompileTargetChanged(); static void onSearchReplace(void* userdata); @@ -304,7 +304,7 @@ public: bool is_script_running); virtual void callbackLSLCompileFailed(const LLSD& compile_errors); - /*virtual*/ bool postBuild(); + bool postBuild() override; void setIsNew() { mIsNew = true; } @@ -323,12 +323,12 @@ public: bool getIsModifiable() const { return mIsModifiable; } // Evaluated on load assert private: - virtual bool canClose(); + bool canClose() override; void closeIfNeeded(); - virtual void draw(); + void draw() override; - virtual void loadAsset(); - /*virtual*/ void saveIfNeeded(bool sync = true); + void loadAsset() override; + void saveIfNeeded(bool sync = true) override; static void onSearchReplace(void* userdata); static void onLoad(void* userdata); diff --git a/indra/newview/llscripteditor.h b/indra/newview/llscripteditor.h index ba44d77ea0..2d98110f75 100644 --- a/indra/newview/llscripteditor.h +++ b/indra/newview/llscripteditor.h @@ -41,15 +41,15 @@ public: Params(); }; - virtual ~LLScriptEditor() {}; + ~LLScriptEditor() override {}; // LLView override - virtual void draw(); - bool postBuild(); + void draw() override; + bool postBuild() override; void initKeywords(bool luau_language = false); void loadKeywords(); - /* virtual */ void clearSegments(); + void clearSegments(); LLKeywords::keyword_iterator_t keywordsBegin(); LLKeywords::keyword_iterator_t keywordsEnd(); LLKeywords& getKeywords(); @@ -66,8 +66,8 @@ public: private: void drawLineNumbers(); - /* virtual */ void updateSegments(); - /* virtual */ void drawSelectionBackground(); + void updateSegments() override; + void drawSelectionBackground() override; LLKeywords mKeywordsLua; LLKeywords mKeywordsLSL; |
