]> git.saurik.com Git - wxWidgets.git/commitdiff
CanPaste() should be const too
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 14 Nov 2008 23:23:16 +0000 (23:23 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 14 Nov 2008 23:23:16 +0000 (23:23 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56772 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/stc/stc.h
src/stc/gen_iface.py
src/stc/stc.cpp

index 118e23cc13646b9efc1b00a97325ae826cc94f5a..e701ed988105e3ba762bd21ee300b4db015ffffd 100644 (file)
@@ -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;
index 5cfd86c85faf6f476660dc7a11a19e65d09cdb70..ed71e5df980bbac24fd6d3c2dc9439cd9f7660fc 100755 (executable)
@@ -663,6 +663,7 @@ constNonGetterMethods = set((
     'LineFromPosition',
     'PositionFromLine',
     'LineLength',
+    'CanPaste',
     'CanRedo',
     'CanUndo',
 ))
index 7be0bfe412d0cb10447834b24bf31eb26af10d73..5188b94c77b6fcef793e42912a145e19595a16e6 100644 (file)
@@ -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;
 }