summaryrefslogtreecommitdiff
path: root/basic
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2015-01-24 07:59:58 +0200
committerTor Lillqvist <tml@collabora.com>2015-01-24 08:10:50 +0200
commitb5938bf4b3dc63d907e2527b0e26c5e3397c50c8 (patch)
tree08ba7aaa06645b76ffa97101d706c18d379e9086 /basic
parent686e35567ac31eee5aa8412c8e6f94c26bbbfb23 (diff)
WaE: rewrite call of rtl::OUString::operator= ...
... with empty string constant argument as call of rtl::OUString::clear [loplugin:stringconstant]. Actually, no need to clear the string here as it already is empty, surely? Change-Id: Ib4b1a6e1b0c0f59c1c964fe58d26058b492c3821
Diffstat (limited to 'basic')
-rw-r--r--basic/source/runtime/methods.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/basic/source/runtime/methods.cxx b/basic/source/runtime/methods.cxx
index d3928a599662..a86a74383ee6 100644
--- a/basic/source/runtime/methods.cxx
+++ b/basic/source/runtime/methods.cxx
@@ -1281,7 +1281,7 @@ RTLFUNC(Mid)
OUString aResultStr;
if (nStartPos > aArgStr.getLength())
{
- aResultStr = "";
+ // do nothing
}
else if(nArgCount == 2)
{