summaryrefslogtreecommitdiff
path: root/framework/source/helper/persistentwindowstate.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'framework/source/helper/persistentwindowstate.cxx')
-rw-r--r--framework/source/helper/persistentwindowstate.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/framework/source/helper/persistentwindowstate.cxx b/framework/source/helper/persistentwindowstate.cxx
index 1599447eef8c..f88c620aede1 100644
--- a/framework/source/helper/persistentwindowstate.cxx
+++ b/framework/source/helper/persistentwindowstate.cxx
@@ -239,9 +239,8 @@ OUString PersistentWindowState::implst_getWindowStateFromWindow(const css::uno::
{
sal_uLong nMask = WINDOWSTATE_MASK_ALL;
nMask &= ~(WINDOWSTATE_MASK_MINIMIZED);
- sWindowState = OStringToOUString(
- static_cast<SystemWindow*>(pWindow)->GetWindowState(nMask),
- RTL_TEXTENCODING_UTF8);
+ sWindowState = OUString::fromUtf8(
+ static_cast<SystemWindow*>(pWindow)->GetWindowState(nMask));
}
// <- SOLAR SAFE ------------------------
}