summaryrefslogtreecommitdiff
path: root/sw/source/ui/vba
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 /sw/source/ui/vba
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 'sw/source/ui/vba')
-rw-r--r--sw/source/ui/vba/vbaapplication.cxx3
-rw-r--r--sw/source/ui/vba/vbafont.cxx3
2 files changed, 2 insertions, 4 deletions
diff --git a/sw/source/ui/vba/vbaapplication.cxx b/sw/source/ui/vba/vbaapplication.cxx
index e3a06f40890b..636ff94799b9 100644
--- a/sw/source/ui/vba/vbaapplication.cxx
+++ b/sw/source/ui/vba/vbaapplication.cxx
@@ -59,8 +59,7 @@ SfxObjectShell* SwVbaApplication::GetDocShell( const uno::Reference< frame::XMod
OUString SAL_CALL
SwVbaApplication::getName() throw (uno::RuntimeException, std::exception)
{
- static OUString appName("Microsoft Word" );
- return appName;
+ return OUString("Microsoft Word" );
}
uno::Reference< word::XDocument > SAL_CALL
diff --git a/sw/source/ui/vba/vbafont.cxx b/sw/source/ui/vba/vbafont.cxx
index d75b5226c4f8..3abfbbe6687d 100644
--- a/sw/source/ui/vba/vbafont.cxx
+++ b/sw/source/ui/vba/vbafont.cxx
@@ -76,8 +76,7 @@ private:
public:
static OUString propName()
{
- static OUString sPropName("CharUnderline");
- return sPropName;
+ return OUString("CharUnderline");
}
static UnderLineMapper& instance()