diff options
Diffstat (limited to 'desktop/source/lib/init.cxx')
-rw-r--r-- | desktop/source/lib/init.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx index 60c53fb16bf6..d23adc16ae64 100644 --- a/desktop/source/lib/init.cxx +++ b/desktop/source/lib/init.cxx @@ -158,8 +158,7 @@ static OUString getUString(const char* pString) if (pString == NULL) return OUString(); - OString sString(pString, strlen(pString)); - return OStringToOUString(sString, RTL_TEXTENCODING_UTF8); + return OUString::fromUtf8(OString(pString, strlen(pString))); } // Try to convert a relative URL to an absolute one |