]> git.tdb.fi Git - libs/gui.git/commitdiff
Initialize Display::primary_monitor to 0
authorMikko Rasa <tdb@tdb.fi>
Wed, 12 Nov 2014 20:46:21 +0000 (22:46 +0200)
committerMikko Rasa <tdb@tdb.fi>
Wed, 12 Nov 2014 20:46:21 +0000 (22:46 +0200)
source/graphics/android/display.cpp
source/graphics/cocoa/display.cpp

index f0afc726c2afe4fd5173d3fd82e5ca395115272e..c2e2cf6a96a524f05c98d7becafcb10865ebc380 100644 (file)
@@ -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<Android::MainThread *>(Application::get_data());
        if(!thread->is_starting_up())
index 9c4aa222280479316b708f5f55c624091dd2319d..f5c39d8bd609a9f9b08dc4d1d7d9b38b1a228ad2 100644 (file)
@@ -9,6 +9,7 @@ namespace Msp {
 namespace Graphics {
 
 Display::Display(const string &):
+       primary_monitor(0),
        priv(new Private)
 {
        static ErrorDialog err_dlg(0);