summaryrefslogtreecommitdiff
path: root/indra/llui/llundo.h
diff options
context:
space:
mode:
authorAnsariel Hiller <Ansariel@users.noreply.github.com>2024-10-02 22:51:10 +0200
committerGitHub <noreply@github.com>2024-10-02 23:51:10 +0300
commit4d92e15a79f697917c4a2ba67e03742d488e2a9d (patch)
treec3ba5662e3969d6af63e3bafe1fa28b6cb1a9a4f /indra/llui/llundo.h
parent13b91ad30633cb50275b1ca4a25522da23107e34 (diff)
Clean up LLUI and fix/add suggestions from VS (#2746)
Diffstat (limited to 'indra/llui/llundo.h')
-rw-r--r--indra/llui/llundo.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/indra/llui/llundo.h b/indra/llui/llundo.h
index dc40702be0..990745e530 100644
--- a/indra/llui/llundo.h
+++ b/indra/llui/llundo.h
@@ -42,7 +42,7 @@ public:
LLUndoAction(): mClusterID(0) {};
virtual ~LLUndoAction(){};
private:
- S32 mClusterID;
+ S32 mClusterID;
};
LLUndoBuffer( LLUndoAction (*create_func()), S32 initial_count );
@@ -51,8 +51,8 @@ public:
LLUndoAction *getNextAction(bool setClusterBegin = true);
bool undoAction();
bool redoAction();
- bool canUndo() { return (mNextAction != mFirstAction); }
- bool canRedo() { return (mNextAction != mLastAction); }
+ bool canUndo() const { return (mNextAction != mFirstAction); }
+ bool canRedo() const { return (mNextAction != mLastAction); }
void flushActions();