summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2022-03-21 16:57:32 +0100
committerAlbrecht Schlosser <albrechts.fltk@online.de>2022-03-21 16:57:32 +0100
commit35c212ef3bb505215f1470ac8a5d487c1a587721 (patch)
treeba30b854c90002ad2c72e99961b7239955cea8d0
parent9e16f3439efd8581fa06dd4401f21a76f84c04b2 (diff)
Fix MSVC 2010 warning: using 'this' in initializer list
This is a legitimate warning although it probably didn't do any harm.
-rw-r--r--src/Fl_Window.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Fl_Window.cxx b/src/Fl_Window.cxx
index e6f14141b..9fef2a936 100644
--- a/src/Fl_Window.cxx
+++ b/src/Fl_Window.cxx
@@ -68,9 +68,9 @@ void Fl_Window::_Fl_Window() {
}
Fl_Window::Fl_Window(int X,int Y,int W, int H, const char *l) :
- Fl_Group(X, Y, W, H, l),
- pWindowDriver(Fl_Window_Driver::newWindowDriver(this))
+ Fl_Group(X, Y, W, H, l)
{
+ pWindowDriver = Fl_Window_Driver::newWindowDriver(this);
_Fl_Window();
set_flag(FORCE_POSITION);
if (!parent()) clear_visible();
@@ -79,9 +79,9 @@ Fl_Window::Fl_Window(int X,int Y,int W, int H, const char *l) :
Fl_Window::Fl_Window(int W, int H, const char *l) :
// fix common user error of a missing end() with current(0):
-Fl_Group((Fl_Group::current(0),0), 0, W, H, l),
-pWindowDriver(Fl_Window_Driver::newWindowDriver(this))
+Fl_Group((Fl_Group::current(0),0), 0, W, H, l)
{
+ pWindowDriver = Fl_Window_Driver::newWindowDriver(this);
_Fl_Window();
clear_visible();
}