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:
@@ -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;
|
||||||
|
@@ -663,6 +663,7 @@ constNonGetterMethods = set((
|
|||||||
'LineFromPosition',
|
'LineFromPosition',
|
||||||
'PositionFromLine',
|
'PositionFromLine',
|
||||||
'LineLength',
|
'LineLength',
|
||||||
|
'CanPaste',
|
||||||
'CanRedo',
|
'CanRedo',
|
||||||
'CanUndo',
|
'CanUndo',
|
||||||
))
|
))
|
||||||
|
@@ -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;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user