diff options
author | Noel Grandin <noel@peralex.com> | 2013-11-04 11:59:34 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-11-11 11:21:23 +0200 |
commit | 484819a235f578df6e6146e536ab542fc2f04391 (patch) | |
tree | 13de07309ab421ef59996705da48acc568f69978 /embeddedobj/source/msole/olecomponent.cxx | |
parent | 22435a0777d6048757855f7f30b04fb8e5523fb2 (diff) |
remove unnecessary use of OUString constructor in EMBEDDEDOBJ module
Change-Id: I60bbdd2a2592a1e5333abe50711aa227786ce935
Diffstat (limited to 'embeddedobj/source/msole/olecomponent.cxx')
-rw-r--r-- | embeddedobj/source/msole/olecomponent.cxx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/embeddedobj/source/msole/olecomponent.cxx b/embeddedobj/source/msole/olecomponent.cxx index 74b801beb415..e4a11c9d8847 100644 --- a/embeddedobj/source/msole/olecomponent.cxx +++ b/embeddedobj/source/msole/olecomponent.cxx @@ -246,11 +246,11 @@ OUString GetFlavorSuffixFromAspect( DWORD nAsp ) OUString aResult; if ( nAsp == DVASPECT_THUMBNAIL ) - aResult = OUString( ";Aspect=THUMBNAIL" ); + aResult = ";Aspect=THUMBNAIL"; else if ( nAsp == DVASPECT_ICON ) - aResult = OUString( ";Aspect=ICON" ); + aResult = ";Aspect=ICON"; else if ( nAsp == DVASPECT_DOCPRINT ) - aResult = OUString( ";Aspect=DOCPRINT" ); + aResult = ";Aspect=DOCPRINT"; // no suffix for DVASPECT_CONTENT @@ -292,7 +292,7 @@ sal_Bool OleComponentNative_Impl::ConvertDataForFlavor( const STGMEDIUM& aMedium if ( aMedium.tymed == TYMED_MFPICT ) // Win Metafile { - aFormat = OUString("image/x-wmf"); + aFormat = "image/x-wmf"; METAFILEPICT* pMF = ( METAFILEPICT* )GlobalLock( aMedium.hMetaFilePict ); if ( pMF ) { @@ -323,7 +323,7 @@ sal_Bool OleComponentNative_Impl::ConvertDataForFlavor( const STGMEDIUM& aMedium } else if ( aMedium.tymed == TYMED_ENHMF ) // Enh Metafile { - aFormat = OUString("image/x-emf"); + aFormat = "image/x-emf"; nBufSize = GetEnhMetaFileBits( aMedium.hEnhMetaFile, 0, NULL ); pBuf = new unsigned char[nBufSize]; if ( nBufSize && nBufSize == GetEnhMetaFileBits( aMedium.hEnhMetaFile, nBufSize, pBuf ) ) @@ -337,7 +337,7 @@ sal_Bool OleComponentNative_Impl::ConvertDataForFlavor( const STGMEDIUM& aMedium } else if ( aMedium.tymed == TYMED_GDI ) // Bitmap { - aFormat = OUString("image/x-MS-bmp"); + aFormat = "image/x-MS-bmp"; nBufSize = GetBitmapBits( aMedium.hBitmap, 0, NULL ); pBuf = new unsigned char[nBufSize]; if ( nBufSize && nBufSize == sal::static_int_cast< ULONG >( GetBitmapBits( aMedium.hBitmap, nBufSize, pBuf ) ) ) @@ -408,7 +408,7 @@ OUString WinAccToVcl_Impl( const sal_Unicode* pStr ) { if ( *pStr == '&' ) { - aResult += OUString( "~" ); + aResult += "~"; while( *( ++pStr ) == '&' ); } else |