summaryrefslogtreecommitdiff
path: root/vbahelper
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-11-03 14:03:54 +0200
committerNoel Grandin <noel@peralex.com>2014-11-05 08:44:19 +0200
commit705c48d32eec0aa5180e60ca157daca4b154e4a3 (patch)
tree97f43496f4b429a2b8d03b1e71cb2a1c33142a15 /vbahelper
parentb7d8a58ff2698ffc6e22943f64aa97c5ea253bd9 (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 'vbahelper')
-rw-r--r--vbahelper/source/vbahelper/vbacommandbarhelper.cxx4
-rw-r--r--vbahelper/source/vbahelper/vbahelper.cxx4
2 files changed, 4 insertions, 4 deletions
diff --git a/vbahelper/source/vbahelper/vbacommandbarhelper.cxx b/vbahelper/source/vbahelper/vbacommandbarhelper.cxx
index f162e5cbd088..db96c7274ade 100644
--- a/vbahelper/source/vbahelper/vbacommandbarhelper.cxx
+++ b/vbahelper/source/vbahelper/vbacommandbarhelper.cxx
@@ -215,8 +215,8 @@ OUString VbaCommandBarHelper::findToolbarByName( const css::uno::Reference< css:
}
// the customize toolbars creating during importing, should found there.
- static OUString sToolbarPrefix( "private:resource/toolbar/custom_" );
- sResourceUrl = sToolbarPrefix.concat( sName );
+ static const char sToolbarPrefix[] = "private:resource/toolbar/custom_";
+ sResourceUrl = sToolbarPrefix + sName;
if( hasToolbar( sResourceUrl, sName ) )
return sResourceUrl;
diff --git a/vbahelper/source/vbahelper/vbahelper.cxx b/vbahelper/source/vbahelper/vbahelper.cxx
index 118cbf87470c..c1cc81c5bcce 100644
--- a/vbahelper/source/vbahelper/vbahelper.cxx
+++ b/vbahelper/source/vbahelper/vbahelper.cxx
@@ -258,7 +258,7 @@ getThisWordDoc( const uno::Reference< uno::XComponentContext >& xContext ) throw
uno::Reference< frame::XModel >
getCurrentExcelDoc( const uno::Reference< uno::XComponentContext >& xContext ) throw (uno::RuntimeException)
{
- static const OUString sThisExcelDoc( "ThisExcelDoc" );
+ static const char sThisExcelDoc[] = "ThisExcelDoc";
uno::Reference< frame::XModel > xModel;
try
{
@@ -274,7 +274,7 @@ getCurrentExcelDoc( const uno::Reference< uno::XComponentContext >& xContext ) t
uno::Reference< frame::XModel >
getCurrentWordDoc( const uno::Reference< uno::XComponentContext >& xContext ) throw (uno::RuntimeException)
{
- static const OUString sThisWordDoc( "ThisWordDoc" );
+ static const char sThisWordDoc[] = "ThisWordDoc";
uno::Reference< frame::XModel > xModel;
try
{