Move EmptyUndoBuffer() from wxTextEntry to wxTextCtrl

It seems unlikely that we're ever going to need this function in any
other classes inheriting from wxTextEntry (i.e. wxComboBox) and both
existing implementations are for wxTextCtrl only, so define this
function there.

If really necessary, we can always lower it to wxTextEntry later, while
moving it in the other direction wouldn't be easily possible due to
compatibility concerns.

This commit is best viewed with git --color-moved option.
This commit is contained in:
Vadim Zeitlin
2021-08-20 16:42:01 +01:00
parent 1799922d0e
commit adacb5c07e
8 changed files with 22 additions and 22 deletions

View File

@@ -574,6 +574,8 @@ public:
DiscardEdits();
}
virtual void EmptyUndoBuffer() { }
// styles handling
// ---------------