diff options
author | Noel Grandin <noel@peralex.com> | 2016-02-24 12:19:44 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-02-24 12:19:44 +0200 |
commit | 670c2b3ca99c9ae4a75c508408023de198e3ac5e (patch) | |
tree | 2c71b7d2e598fea55b9d6096f8214c72f07eeda7 /basic/source/sbx/sbxvar.cxx | |
parent | 459e3fe7c97abe922e42e464ace2914546602f44 (diff) |
simply the SbxRes stuff, inheriting from OUString is icky
Change-Id: Ie9794ea164d587ad87ee13d360cb3abc18166051
Diffstat (limited to 'basic/source/sbx/sbxvar.cxx')
-rw-r--r-- | basic/source/sbx/sbxvar.cxx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/basic/source/sbx/sbxvar.cxx b/basic/source/sbx/sbxvar.cxx index 2a15eed59ff2..20361375a669 100644 --- a/basic/source/sbx/sbxvar.cxx +++ b/basic/source/sbx/sbxvar.cxx @@ -258,11 +258,11 @@ const OUString& SbxVariable::GetName( SbxNameType t ) const } if( i->nFlags & SbxFlagBits::Optional ) { - aTmp += OUString( SbxRes( StringId::Optional ) ); + aTmp += GetSbxRes( StringId::Optional ); } if( i->eType & SbxBYREF ) { - aTmp += OUString( SbxRes( StringId::ByRef ) ); + aTmp += GetSbxRes( StringId::ByRef ); } aTmp += i->aName; cType = ' '; @@ -291,14 +291,14 @@ const OUString& SbxVariable::GetName( SbxNameType t ) const // long type? if( t != SbxNAME_SHORT ) { - aTmp += OUString( SbxRes( StringId::As ) ); + aTmp += GetSbxRes( StringId::As ); if( nt < 32 ) { - aTmp += OUString( SbxRes( static_cast<StringId>( static_cast<int>( StringId::Types ) + nt ) ) ); + aTmp += GetSbxRes( static_cast<StringId>( static_cast<int>( StringId::Types ) + nt ) ); } else { - aTmp += OUString( SbxRes( StringId::Any ) ); + aTmp += GetSbxRes( StringId::Any ); } } } @@ -307,14 +307,14 @@ const OUString& SbxVariable::GetName( SbxNameType t ) const // Long type? Then fetch it if( t == SbxNAME_LONG_TYPES && et != SbxEMPTY ) { - aTmp += OUString( SbxRes( StringId::As ) ); + aTmp += GetSbxRes( StringId::As ); if( et < 32 ) { - aTmp += OUString( SbxRes( static_cast<StringId>( static_cast<int>( StringId::Types ) + et ) ) ); + aTmp += GetSbxRes( static_cast<StringId>( static_cast<int>( StringId::Types ) + et ) ); } else { - aTmp += OUString( SbxRes( StringId::Any ) ); + aTmp += GetSbxRes( StringId::Any ); } } const_cast<SbxVariable*>(this)->aToolString = aTmp; |