From: Vadim Zeitlin Date: Fri, 14 Nov 2008 23:23:16 +0000 (+0000) Subject: CanPaste() should be const too X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/7d6d76d0939750ff6c8f7e938e125ead70c9d188 CanPaste() should be const too git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56772 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/stc/stc.h b/include/wx/stc/stc.h index 118e23cc13..e701ed9881 100644 --- a/include/wx/stc/stc.h +++ b/include/wx/stc/stc.h @@ -2643,7 +2643,7 @@ public: void SetReadOnly(bool readOnly); // Will a paste succeed? - bool CanPaste(); + bool CanPaste() const; // Are there any undoable actions in the undo history? bool CanUndo() const; diff --git a/src/stc/gen_iface.py b/src/stc/gen_iface.py index 5cfd86c85f..ed71e5df98 100755 --- a/src/stc/gen_iface.py +++ b/src/stc/gen_iface.py @@ -663,6 +663,7 @@ constNonGetterMethods = set(( 'LineFromPosition', 'PositionFromLine', 'LineLength', + 'CanPaste', 'CanRedo', 'CanUndo', )) diff --git a/src/stc/stc.cpp b/src/stc/stc.cpp index 7be0bfe412..5188b94c77 100644 --- a/src/stc/stc.cpp +++ b/src/stc/stc.cpp @@ -1569,7 +1569,7 @@ void wxStyledTextCtrl::SetReadOnly(bool readOnly) } // Will a paste succeed? -bool wxStyledTextCtrl::CanPaste() +bool wxStyledTextCtrl::CanPaste() const { return SendMsg(2173, 0, 0) != 0; }