diff options
author | Noel Grandin <noel@peralex.com> | 2014-11-03 14:03:54 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-11-05 08:44:19 +0200 |
commit | 705c48d32eec0aa5180e60ca157daca4b154e4a3 (patch) | |
tree | 97f43496f4b429a2b8d03b1e71cb2a1c33142a15 /cui/source/customize/macropg.cxx | |
parent | b7d8a58ff2698ffc6e22943f64aa97c5ea253bd9 (diff) |
fdo#38835 strip out OUString globals
they are largely unnecessary these days, since our OUString infrastructure
gained optimised handling for static char constants.
Change-Id: I07f73484f82d0582252cb4324d4107c998432c37
Diffstat (limited to 'cui/source/customize/macropg.cxx')
-rw-r--r-- | cui/source/customize/macropg.cxx | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/cui/source/customize/macropg.cxx b/cui/source/customize/macropg.cxx index 1ac54fe04dcc..c2d44516ca7b 100644 --- a/cui/source/customize/macropg.cxx +++ b/cui/source/customize/macropg.cxx @@ -49,8 +49,8 @@ using namespace ::com::sun::star; using namespace ::com::sun::star::uno; -static OUString aVndSunStarUNO( "vnd.sun.star.UNO:" ); -static OUString aVndSunStarScript( "vnd.sun.star.script:" ); +static const char aVndSunStarUNO[] = "vnd.sun.star.UNO:"; +static const char aVndSunStarScript[] = "vnd.sun.star.script:"; _SvxMacroTabPage_Impl::_SvxMacroTabPage_Impl( const SfxItemSet& rAttrSet ) : pAssignPB(NULL) @@ -464,13 +464,11 @@ void IconLBoxString::Paint( OUString aPureMethod; if( bUNO ) { - sal_Int32 nBegin = aVndSunStarUNO.getLength(); - aPureMethod = aURL.copy( nBegin ); + aPureMethod = aURL.copy( strlen(aVndSunStarUNO) ); } else { - sal_Int32 nBegin = aVndSunStarScript.getLength(); - aPureMethod = aURL.copy( nBegin ); + aPureMethod = aURL.copy( strlen(aVndSunStarScript) ); aPureMethod = aPureMethod.copy( 0, aPureMethod.indexOf( '?' ) ); } @@ -868,8 +866,7 @@ AssignComponentDialog::AssignComponentDialog( vcl::Window * pParent, const OUStr OUString aMethodName; if( maURL.startsWith( aVndSunStarUNO ) ) { - sal_Int32 nBegin = aVndSunStarUNO.getLength(); - aMethodName = maURL.copy( nBegin ); + aMethodName = maURL.copy( strlen(aVndSunStarUNO) ); } mpMethodEdit->SetText( aMethodName, Selection( 0, SELECTION_MAX ) ); } |