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/sbxres.cxx | |
parent | 459e3fe7c97abe922e42e464ace2914546602f44 (diff) |
simply the SbxRes stuff, inheriting from OUString is icky
Change-Id: Ie9794ea164d587ad87ee13d360cb3abc18166051
Diffstat (limited to 'basic/source/sbx/sbxres.cxx')
-rw-r--r-- | basic/source/sbx/sbxres.cxx | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/basic/source/sbx/sbxres.cxx b/basic/source/sbx/sbxres.cxx index 608b3e224a3c..125969e3efd9 100644 --- a/basic/source/sbx/sbxres.cxx +++ b/basic/source/sbx/sbxres.cxx @@ -72,13 +72,9 @@ static const char* pSbxRes[] = { "True" }; -const char* GetSbxRes( StringId nId ) +OUString GetSbxRes( StringId nId ) { - return ( ( nId > StringId::LastValue ) ? "???" : pSbxRes[ static_cast<int>( nId ) ] ); + return OUString::createFromAscii( ( nId > StringId::LastValue ) ? "???" : pSbxRes[ static_cast<int>( nId ) ] ); } -SbxRes::SbxRes( StringId nId ) - : OUString( OUString::createFromAscii( GetSbxRes( nId ) ) ) -{} - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |