diff options
author | Daniel Wilhelm <shieldwed@outlook.com> | 2018-05-09 00:09:55 +0200 |
---|---|---|
committer | Daniel Wilhelm <shieldwed@outlook.com> | 2018-05-09 00:09:55 +0200 |
commit | 9b623ea3943165fe7efb5e47a0b5b9452c1599e6 (patch) | |
tree | dde40e07e907ac6e0ca9ea32524f2cd4810d4be6 /wx+/app_main.h | |
parent | 9.7 (diff) | |
download | FreeFileSync-9b623ea3943165fe7efb5e47a0b5b9452c1599e6.tar.gz FreeFileSync-9b623ea3943165fe7efb5e47a0b5b9452c1599e6.tar.bz2 FreeFileSync-9b623ea3943165fe7efb5e47a0b5b9452c1599e6.zip |
9.8
Diffstat (limited to 'wx+/app_main.h')
-rwxr-xr-x | wx+/app_main.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/wx+/app_main.h b/wx+/app_main.h index d9559fea..8d2a6eeb 100755 --- a/wx+/app_main.h +++ b/wx+/app_main.h @@ -10,6 +10,7 @@ #include <wx/window.h> #include <wx/app.h> + namespace zen { //just some wrapper around a global variable representing the (logical) main application window @@ -22,12 +23,16 @@ bool mainWindowWasSet(); //######################## implementation ######################## +namespace impl +{ inline bool& refMainWndStatus() { static bool status = false; //external linkage! return status; } +} + inline void setMainWindow(wxWindow* window) @@ -35,10 +40,10 @@ void setMainWindow(wxWindow* window) wxTheApp->SetTopWindow(window); wxTheApp->SetExitOnFrameDelete(true); - refMainWndStatus() = true; + impl::refMainWndStatus() = true; } -inline bool mainWindowWasSet() { return refMainWndStatus(); } +inline bool mainWindowWasSet() { return impl::refMainWndStatus(); } } #endif //APP_MAIN_H_08215601837818347575856 |