diff options
author | Noel Grandin <noel@peralex.com> | 2013-11-20 16:21:34 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-11-21 13:29:29 +0200 |
commit | 89633c6da1cde46983926dcc2e0f8e08de0e9378 (patch) | |
tree | 243f049b51b9f404e8697781dfada6c20ff0fee1 /sfx2/source | |
parent | 2a46a01902bccd1f025cce92ce6d32efbabf6825 (diff) |
remove unnecessary use of OUString::createFromAscii
Convert code like this:
OUString aStrSpacing(OUString::createFromAscii("spacing"));
to:
OUString aStrSpacing("spacing");
Change-Id: Ia2b7d6b42f35d33cfe587a0d6668030f3537fa6d
Diffstat (limited to 'sfx2/source')
-rw-r--r-- | sfx2/source/appl/appmisc.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sfx2/source/appl/appmisc.cxx b/sfx2/source/appl/appmisc.cxx index 8b8c88c11219..82d5ae1cddd5 100644 --- a/sfx2/source/appl/appmisc.cxx +++ b/sfx2/source/appl/appmisc.cxx @@ -160,15 +160,13 @@ bool SfxApplication::loadBrandSvg(const char *pName, BitmapEx &rBitmap, int nWid { // Load from disk // --------------------------------------------------------------------- - OUString aBaseName = ( OUString("/") + - OUString::createFromAscii( pName ) ); - OUString aSvg( ".svg" ); + OUString aBaseName = OUString("/") + OUString::createFromAscii( pName ); rtl_Locale *pLoc = NULL; osl_getProcessLocale (&pLoc); LanguageTag aLanguageTag( *pLoc); - OUString uri = OUString::createFromAscii( "$BRAND_BASE_DIR/" LIBO_ETC_FOLDER ) + aBaseName+aSvg; + OUString uri = OUString( "$BRAND_BASE_DIR/" LIBO_ETC_FOLDER ) + aBaseName + ".svg"; rtl::Bootstrap::expandMacros( uri ); INetURLObject aObj( uri ); SvgData aSvgData(aObj.PathToFileName()); |