drop toString

Change-Id: If32d2bb0947d13c904da9514873f33c4c2641069
This commit is contained in:
Caolán McNamara
2017-04-28 14:44:49 +01:00
parent af754ef9d6
commit e4ad1d174b
3 changed files with 3 additions and 3 deletions

View File

@@ -304,7 +304,7 @@ OUString GraphicNamingHelper::NameGraphic(const OUString& rTemplate)
{ {
// Empty template: then auto-generate a unique name. // Empty template: then auto-generate a unique name.
std::unique_ptr<ResMgr> pResMgr(ResMgr::CreateResMgr("svx", Application::GetSettings().GetUILanguageTag())); std::unique_ptr<ResMgr> pResMgr(ResMgr::CreateResMgr("svx", Application::GetSettings().GetUILanguageTag()));
OUString aPrefix(ResId(STR_ObjNameSingulGRAF, *pResMgr).toString()); OUString aPrefix(ResId(STR_ObjNameSingulGRAF, *pResMgr));
aRet += aPrefix + OUString::number(++m_nCounter); aRet += aPrefix + OUString::number(++m_nCounter);
} }

View File

@@ -462,7 +462,7 @@ void OOXMLDocumentImpl::resolve(Stream & rStream)
// Set the end position only here, so later it's enough to check if that is non-zero in incrementProgress(). // Set the end position only here, so later it's enough to check if that is non-zero in incrementProgress().
mnProgressEndPos = nValue; mnProgressEndPos = nValue;
static ResMgr* pResMgr = ResMgr::CreateResMgr("svx", Application::GetSettings().GetUILanguageTag()); static ResMgr* pResMgr = ResMgr::CreateResMgr("svx", Application::GetSettings().GetUILanguageTag());
OUString aDocLoad(ResId(RID_SVXSTR_DOC_LOAD, *pResMgr).toString()); OUString aDocLoad(ResId(RID_SVXSTR_DOC_LOAD, *pResMgr));
mxStatusIndicator->start(aDocLoad, mnProgressEndPos); mxStatusIndicator->start(aDocLoad, mnProgressEndPos);
mnPercentSize = mnProgressEndPos / 100; mnPercentSize = mnProgressEndPos / 100;
} }

View File

@@ -66,7 +66,7 @@ RTFError RTFTokenizer::resolveParse()
if (m_xStatusIndicator.is()) if (m_xStatusIndicator.is())
{ {
static ResMgr* pResMgr = ResMgr::CreateResMgr("svx", Application::GetSettings().GetUILanguageTag()); static ResMgr* pResMgr = ResMgr::CreateResMgr("svx", Application::GetSettings().GetUILanguageTag());
OUString sDocLoad(ResId(RID_SVXSTR_DOC_LOAD, *pResMgr).toString()); OUString sDocLoad(ResId(RID_SVXSTR_DOC_LOAD, *pResMgr));
sal_uInt64 const nCurrentPos = Strm().Tell(); sal_uInt64 const nCurrentPos = Strm().Tell();
sal_uInt64 const nEndPos = nCurrentPos + Strm().remainingSize(); sal_uInt64 const nEndPos = nCurrentPos + Strm().remainingSize();