summaryrefslogtreecommitdiff
path: root/wx+/no_flicker.h
diff options
context:
space:
mode:
Diffstat (limited to 'wx+/no_flicker.h')
-rw-r--r--wx+/no_flicker.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/wx+/no_flicker.h b/wx+/no_flicker.h
index f745a12a..22952977 100644
--- a/wx+/no_flicker.h
+++ b/wx+/no_flicker.h
@@ -12,7 +12,7 @@
namespace zen
{
inline
-void setText(wxTextCtrl& control, const wxString& newText, bool* additionalLayoutChange = NULL)
+void setText(wxTextCtrl& control, const wxString& newText, bool* additionalLayoutChange = nullptr)
{
if (additionalLayoutChange && !*additionalLayoutChange) //never revert from true to false!
*additionalLayoutChange = control.GetValue().length() != newText.length(); //avoid screen flicker: update layout only when necessary
@@ -22,7 +22,7 @@ void setText(wxTextCtrl& control, const wxString& newText, bool* additionalLayou
}
inline
-void setText(wxStaticText& control, const wxString& newText, bool* additionalLayoutChange = NULL)
+void setText(wxStaticText& control, const wxString& newText, bool* additionalLayoutChange = nullptr)
{
if (additionalLayoutChange && !*additionalLayoutChange)
*additionalLayoutChange = control.GetLabel().length() != newText.length(); //avoid screen flicker: update layout only when necessary
bgstack15