summaryrefslogtreecommitdiff
path: root/sax
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 /sax
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 'sax')
-rw-r--r--sax/source/tools/converter.cxx10
1 files changed, 4 insertions, 6 deletions
diff --git a/sax/source/tools/converter.cxx b/sax/source/tools/converter.cxx
index 24f7f2677861..063fea17735e 100644
--- a/sax/source/tools/converter.cxx
+++ b/sax/source/tools/converter.cxx
@@ -416,16 +416,14 @@ void Converter::convertMeasure( OUStringBuffer& rBuffer,
rBuffer.appendAscii( psUnit );
}
-static const OUString& getTrueString()
+static OUString getTrueString()
{
- static const OUString sTrue( "true" );
- return sTrue;
+ return OUString( "true" );
}
-static const OUString& getFalseString()
+static OUString getFalseString()
{
- static const OUString sFalse( "false" );
- return sFalse;
+ return OUString( "false" );
}
/** convert string to boolean */