From: Mikko Rasa Date: Wed, 12 Nov 2014 20:46:21 +0000 (+0200) Subject: Initialize Display::primary_monitor to 0 X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=d6bdc1d1dd8df202608eeee4fb2a99693ee62d56;p=libs%2Fgui.git Initialize Display::primary_monitor to 0 --- diff --git a/source/graphics/android/display.cpp b/source/graphics/android/display.cpp index f0afc72..c2e2cf6 100644 --- a/source/graphics/android/display.cpp +++ b/source/graphics/android/display.cpp @@ -8,7 +8,8 @@ using namespace std; namespace Msp { namespace Graphics { -Display::Display(const string &) +Display::Display(const string &): + primary_monitor(0) { Android::MainThread *thread = reinterpret_cast(Application::get_data()); if(!thread->is_starting_up()) diff --git a/source/graphics/cocoa/display.cpp b/source/graphics/cocoa/display.cpp index 9c4aa22..f5c39d8 100644 --- a/source/graphics/cocoa/display.cpp +++ b/source/graphics/cocoa/display.cpp @@ -9,6 +9,7 @@ namespace Msp { namespace Graphics { Display::Display(const string &): + primary_monitor(0), priv(new Private) { static ErrorDialog err_dlg(0);