Kaydet (Commit) e56702c4 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

loplugin:staticaccess

Change-Id: Ic62cdd1fd2ba2fe0ecda49505cf7047457d33b87
üst 2bf4d69e
......@@ -143,10 +143,10 @@ OUString SAL_CALL NumberText_Impl::getNumberText(const OUString& rText, const Lo
aCode += "-" + aCountry;
OString aLangCode(OUStringToOString(aCode, RTL_TEXTENCODING_ASCII_US));
OString aInput(OUStringToOString(rText, RTL_TEXTENCODING_UTF8));
std::wstring aResult = m_aNumberText.string2wstring(aInput.getStr());
std::wstring aResult = Numbertext::string2wstring(aInput.getStr());
bool result = m_aNumberText.numbertext(aResult, aLangCode.getStr());
DBG_ASSERT(result, "numbertext: false");
OString aResult2(m_aNumberText.wstring2string(aResult).c_str());
OString aResult2(Numbertext::wstring2string(aResult).c_str());
return OUString::fromUtf8(aResult2);
#else
return rText;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment