summaryrefslogtreecommitdiff
path: root/desktop/source/splash/splash.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/source/splash/splash.cxx')
-rw-r--r--desktop/source/splash/splash.cxx7
1 files changed, 2 insertions, 5 deletions
diff --git a/desktop/source/splash/splash.cxx b/desktop/source/splash/splash.cxx
index b5b3568e12e3..c34673f3e881 100644
--- a/desktop/source/splash/splash.cxx
+++ b/desktop/source/splash/splash.cxx
@@ -477,16 +477,13 @@ void SplashScreen::SetScreenBitmap(BitmapEx &rBitmap)
// create file name from screen resolution information
OStringBuffer aStrBuf( 128 );
- OStringBuffer aResBuf( 32 );
aStrBuf.append( "intro_" );
if ( !_sAppName.isEmpty() )
{
aStrBuf.append( OUStringToOString(_sAppName, RTL_TEXTENCODING_UTF8) );
aStrBuf.append( "_" );
}
- aResBuf.append( OString::number( nWidth ));
- aResBuf.append( "x" );
- aResBuf.append( OString::number( nHeight ));
+ OString aResBuf = OString::number( nWidth ) + "x" + OString::number( nHeight );
aStrBuf.append( aResBuf.getStr() );
if (Application::LoadBrandBitmap (aStrBuf.makeStringAndClear().getStr(), rBitmap))
@@ -494,7 +491,7 @@ void SplashScreen::SetScreenBitmap(BitmapEx &rBitmap)
aStrBuf.append( "intro_" );
aStrBuf.append( aResBuf.getStr() );
- if (Application::LoadBrandBitmap (aResBuf.makeStringAndClear().getStr(), rBitmap))
+ if (Application::LoadBrandBitmap (aResBuf.getStr(), rBitmap))
return;
(void)Application::LoadBrandBitmap ("intro", rBitmap);