diff options
author | Norbert Thiebaud <nthiebaud@gmail.com> | 2012-06-02 23:00:35 -0500 |
---|---|---|
committer | Norbert Thiebaud <nthiebaud@gmail.com> | 2012-06-02 23:00:35 -0500 |
commit | 2f1a1c529694c1fec6d3b02930f8226c7b2bccd9 (patch) | |
tree | 48f2d3144b40e0eabd9e3cf551b511cd5a26f17a /sfx2/source/doc/graphhelp.cxx | |
parent | aa062d1b735f3ebef00fe64c74240240d3912722 (diff) |
targeted string re-work
Change-Id: Ia43a1ac7e55f3823255d739fb0930fa23ec5ab27
Diffstat (limited to 'sfx2/source/doc/graphhelp.cxx')
-rw-r--r-- | sfx2/source/doc/graphhelp.cxx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/sfx2/source/doc/graphhelp.cxx b/sfx2/source/doc/graphhelp.cxx index 8e79f753da79..8ed8bd8e9a1a 100644 --- a/sfx2/source/doc/graphhelp.cxx +++ b/sfx2/source/doc/graphhelp.cxx @@ -116,7 +116,7 @@ void* GraphicHelper::getEnhMetaFileFromGDI_Impl( const GDIMetaFile* pGDIMeta ) #ifdef WNT if ( pGDIMeta ) { - String aStr = ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(".emf")); + String aStr = ::rtl::OUString(".emf"); ::utl::TempFile aTempFile( ::rtl::OUString(), &aStr, NULL, @@ -462,25 +462,25 @@ sal_Bool GraphicHelper::getThumbnailReplacement_Impl( sal_Int32 nResID, const un { uno::Reference< graphic::XGraphicProvider > xGraphProvider( xServiceManager->createInstance( - ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.graphic.GraphicProvider")) ), + ::rtl::OUString("com.sun.star.graphic.GraphicProvider") ), uno::UNO_QUERY ); if ( xGraphProvider.is() ) { - ::rtl::OUString aURL(RTL_CONSTASCII_USTRINGPARAM("private:resource/sfx/bitmapex/")); + ::rtl::OUString aURL("private:resource/sfx/bitmapex/"); aURL += ::rtl::OUString::valueOf( nResID ); uno::Sequence< beans::PropertyValue > aMediaProps( 1 ); - aMediaProps[0].Name = ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("URL")); + aMediaProps[0].Name = ::rtl::OUString("URL"); aMediaProps[0].Value <<= aURL; uno::Reference< graphic::XGraphic > xGraphic = xGraphProvider->queryGraphic( aMediaProps ); if ( xGraphic.is() ) { uno::Sequence< beans::PropertyValue > aStoreProps( 2 ); - aStoreProps[0].Name = ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("OutputStream")); + aStoreProps[0].Name = ::rtl::OUString("OutputStream"); aStoreProps[0].Value <<= xStream; - aStoreProps[1].Name = ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("MimeType")); - aStoreProps[1].Value <<= ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("image/png")); + aStoreProps[1].Name = ::rtl::OUString("MimeType"); + aStoreProps[1].Value <<= ::rtl::OUString("image/png"); xGraphProvider->storeGraphic( xGraphic, aStoreProps ); bResult = sal_True; |