diff options
author | Noel Grandin <noel@peralex.com> | 2013-11-04 14:00:40 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-11-11 11:21:26 +0200 |
commit | e52779d2f8722c713f72aedbf475267440d729f0 (patch) | |
tree | 0f2f15b2a7645e0b75f8057c96c90e05e1a6e7df /lotuswordpro | |
parent | e9c4ee996d5a6bf895072613ac4e488346ee5b05 (diff) |
remove unnecessary use of OUString constructor
Change-Id: Ifb220af71857ddacd64e8204fb6d3e4aad8eef71
Diffstat (limited to 'lotuswordpro')
-rw-r--r-- | lotuswordpro/source/filter/lwpdrawobj.cxx | 18 | ||||
-rw-r--r-- | lotuswordpro/source/filter/lwpfilter.cxx | 8 | ||||
-rw-r--r-- | lotuswordpro/source/filter/lwpsilverbullet.cxx | 10 |
3 files changed, 18 insertions, 18 deletions
diff --git a/lotuswordpro/source/filter/lwpdrawobj.cxx b/lotuswordpro/source/filter/lwpdrawobj.cxx index b01bf7b7ef90..edc075e86787 100644 --- a/lotuswordpro/source/filter/lwpdrawobj.cxx +++ b/lotuswordpro/source/filter/lwpdrawobj.cxx @@ -340,31 +340,31 @@ OUString LwpDrawObj::GetArrowName(sal_uInt8 nArrowStyle) { default: case AH_ARROW_FULLARROW: - aArrowName = OUString("Symmetric arrow"); + aArrowName = "Symmetric arrow"; break; case AH_ARROW_HALFARROW: - aArrowName = OUString("Arrow concave"); + aArrowName = "Arrow concave"; break; case AH_ARROW_LINEARROW: - aArrowName = OUString("arrow100"); + aArrowName = "arrow100"; break; case AH_ARROW_INVFULLARROW: - aArrowName = OUString("reverse arrow"); + aArrowName = "reverse arrow"; break; case AH_ARROW_INVHALFARROW: - aArrowName = OUString("reverse concave arrow"); + aArrowName = "reverse concave arrow"; break; case AH_ARROW_INVLINEARROW: - aArrowName = OUString("reverse line arrow"); + aArrowName = "reverse line arrow"; break; case AH_ARROW_TEE: - aArrowName = OUString("Dimension lines"); + aArrowName = "Dimension lines"; break; case AH_ARROW_SQUARE: - aArrowName = OUString("Square"); + aArrowName = "Square"; break; case AH_ARROW_CIRCLE: - aArrowName = OUString("Circle"); + aArrowName = "Circle"; break; } diff --git a/lotuswordpro/source/filter/lwpfilter.cxx b/lotuswordpro/source/filter/lwpfilter.cxx index a627faaa78b3..8e55ebbbf52a 100644 --- a/lotuswordpro/source/filter/lwpfilter.cxx +++ b/lotuswordpro/source/filter/lwpfilter.cxx @@ -194,7 +194,7 @@ sal_Bool LWPFilterImportFilter::supportsService( const OUString& ServiceName ) t Sequence< OUString> LWPFilterImportFilter::getSupportedServiceNames( void ) throw() { Sequence< OUString > seq(1); - seq.getArray()[0] = OUString( STR_SERVICE_NAME ); + seq[0] = STR_SERVICE_NAME; return seq; } @@ -240,7 +240,7 @@ OUString SAL_CALL LWPFilterImportFilter::detect( ::com::sun::star::uno::Sequence if(!bOpenAsTemplate) { aDescriptor.realloc( nPropertyCount + 1 ); - aDescriptor[nPropertyCount].Name = OUString("AsTemplate"); + aDescriptor[nPropertyCount].Name = "AsTemplate"; aDescriptor[nPropertyCount].Value <<= sal_True; } return OUString("wordpro_template"); @@ -262,7 +262,7 @@ OUString SAL_CALL LWPFilterImportFilter::detect( ::com::sun::star::uno::Sequence if(rc != osl::FileBase::E_None) { SAXException except; - except.Message = OUString( "GDocting system path from URL failed!"); + except.Message = "GDocting system path from URL failed!"; throw except; } */ @@ -274,7 +274,7 @@ OUString SAL_CALL LWPFilterImportFilter::detect( ::com::sun::star::uno::Sequence if(!bOpenAsTemplate) { aDescriptor.realloc( nPropertyCount + 1 ); - aDescriptor[nPropertyCount].Name = OUString("AsTemplate"); + aDescriptor[nPropertyCount].Name = "AsTemplate"; aDescriptor[nPropertyCount].Value <<= sal_True; } return OUString("wordpro_template"); diff --git a/lotuswordpro/source/filter/lwpsilverbullet.cxx b/lotuswordpro/source/filter/lwpsilverbullet.cxx index 27dedc073512..d03216a7b0b0 100644 --- a/lotuswordpro/source/filter/lwpsilverbullet.cxx +++ b/lotuswordpro/source/filter/lwpsilverbullet.cxx @@ -273,19 +273,19 @@ OUString LwpSilverBullet::GetNumCharByStyleID(LwpFribParaNumber* pParaNumber) case NUMCHAR_1: case NUMCHAR_01: case NUMCHAR_Chinese4: - strNumChar = OUString("1"); + strNumChar = "1"; break; case NUMCHAR_A : - strNumChar = OUString("A"); + strNumChar = "A"; break; case NUMCHAR_a: - strNumChar = OUString("a"); + strNumChar = "a"; break; case NUMCHAR_I: - strNumChar = OUString("I"); + strNumChar = "I"; break; case NUMCHAR_i: - strNumChar = OUString("i"); + strNumChar = "i"; break; case NUMCHAR_other: uC = static_cast<UChar32>(pParaNumber->GetNumberChar()); |