diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2020-10-14 17:48:36 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2020-10-14 22:13:38 +0200 |
commit | cf0ed4fb4a610a61332a418f12b547648c3a0130 (patch) | |
tree | 8722973e4ae0f3ca82f6372f50e39863c23d62c1 /framework | |
parent | b6d0ca04581eae01817aac18d32a312bc9a2d514 (diff) |
More fixes of uses of now-explicit OUString ctor taking raw sal_Unicode pointer
...in Windows-only code, after c927aab29ebfff1ce3ac0b2f27ae343025a9890c "Make
the OUString ctors taking raw sal_Unicode pointer/non-const array explicit".
Interestingly, these occurrences were accepted by MSVC and only cause errors
with clang-cl, so happened to go unnoticed until now.
Change-Id: I33e7653e28a21541ef793b4b0750abb6037752db
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104314
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'framework')
-rw-r--r-- | framework/source/uielement/spinfieldtoolbarcontroller.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/framework/source/uielement/spinfieldtoolbarcontroller.cxx b/framework/source/uielement/spinfieldtoolbarcontroller.cxx index 235fb62675f3..428558e6daba 100644 --- a/framework/source/uielement/spinfieldtoolbarcontroller.cxx +++ b/framework/source/uielement/spinfieldtoolbarcontroller.cxx @@ -432,7 +432,7 @@ OUString SpinfieldToolbarController::FormatOutputString( double fValue ) else _snwprintf( o3tl::toW(aBuffer), SAL_N_ELEMENTS(aBuffer), o3tl::toW(m_aOutFormat.getStr()), sal_Int32( fValue )); - return aBuffer; + return OUString(aBuffer); #else // Currently we have no support for a format string using sal_Unicode. wchar_t // is 32 bit on Unix platform! |