CanPaste() should be const too

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56772 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2008-11-14 23:23:16 +00:00
parent e4513a5eae
commit 7d6d76d093
3 changed files with 3 additions and 2 deletions

View File

@@ -2643,7 +2643,7 @@ public:
void SetReadOnly(bool readOnly); void SetReadOnly(bool readOnly);
// Will a paste succeed? // Will a paste succeed?
bool CanPaste(); bool CanPaste() const;
// Are there any undoable actions in the undo history? // Are there any undoable actions in the undo history?
bool CanUndo() const; bool CanUndo() const;

View File

@@ -663,6 +663,7 @@ constNonGetterMethods = set((
'LineFromPosition', 'LineFromPosition',
'PositionFromLine', 'PositionFromLine',
'LineLength', 'LineLength',
'CanPaste',
'CanRedo', 'CanRedo',
'CanUndo', 'CanUndo',
)) ))

View File

@@ -1569,7 +1569,7 @@ void wxStyledTextCtrl::SetReadOnly(bool readOnly)
} }
// Will a paste succeed? // Will a paste succeed?
bool wxStyledTextCtrl::CanPaste() bool wxStyledTextCtrl::CanPaste() const
{ {
return SendMsg(2173, 0, 0) != 0; return SendMsg(2173, 0, 0) != 0;
} }