From: Vadim Zeitlin Date: Tue, 16 Nov 2004 12:06:02 +0000 (+0000) Subject: small optimization for wxTextCtrl (forgot to commit with textctrl.cpp) X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/bcb251a0c146e7c39c7000c7dc145b3f2bd6afcf small optimization for wxTextCtrl (forgot to commit with textctrl.cpp) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30565 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/msw/textctrl.h b/include/wx/msw/textctrl.h index 316248cf09..db47342cb0 100644 --- a/include/wx/msw/textctrl.h +++ b/include/wx/msw/textctrl.h @@ -261,6 +261,12 @@ private: wxMenu* m_privateContextMenu; bool m_isNativeCaretShown; + + // this is an optimization: instead of checking all the time whether we + // need to move the caret to the end of text (before appending to the + // control), we remember whether it is already at the end of text in this + // variable + bool m_isCaretAtEnd; }; #endif