diff options
Diffstat (limited to 'framework')
-rw-r--r-- | framework/source/helper/persistentwindowstate.cxx | 3 | ||||
-rw-r--r-- | framework/source/uiconfiguration/windowstateconfiguration.cxx | 2 |
2 files changed, 1 insertions, 4 deletions
diff --git a/framework/source/helper/persistentwindowstate.cxx b/framework/source/helper/persistentwindowstate.cxx index c4fbaf055b60..6938cc28a35e 100644 --- a/framework/source/helper/persistentwindowstate.cxx +++ b/framework/source/helper/persistentwindowstate.cxx @@ -220,8 +220,7 @@ OUString PersistentWindowState::implst_getWindowStateFromWindow(const css::uno:: (pWindow->IsSystemWindow()) ) { - sal_uLong nMask = WINDOWSTATE_MASK_ALL; - nMask &= ~(WINDOWSTATE_MASK_MINIMIZED); + WindowStateMask nMask = WindowStateMask::All & ~(WindowStateMask::Minimized); sWindowState = OStringToOUString( static_cast<SystemWindow*>(pWindow)->GetWindowState(nMask), RTL_TEXTENCODING_UTF8); diff --git a/framework/source/uiconfiguration/windowstateconfiguration.cxx b/framework/source/uiconfiguration/windowstateconfiguration.cxx index aef78238b43b..72b7c8492241 100644 --- a/framework/source/uiconfiguration/windowstateconfiguration.cxx +++ b/framework/source/uiconfiguration/windowstateconfiguration.cxx @@ -56,8 +56,6 @@ using namespace ::com::sun::star::frame; using namespace ::com::sun::star::ui; using namespace framework; -#undef WINDOWSTATE_MASK_POS - namespace { // Zero based indexes, order must be the same as WindowStateMask && CONFIGURATION_PROPERTIES! |