diff options
author | Tor Lillqvist <tml@collabora.com> | 2016-04-26 20:31:13 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2016-04-26 20:31:13 +0300 |
commit | 29da9d383e1a6a9987fe4bcfaac7421d2524a2d4 (patch) | |
tree | dd9dc6c007ac65b7eb4a5a8f8461a5cba2339402 /sc | |
parent | 7671d643079b04f9e928425435a38aa98c7c4a55 (diff) |
loplugin:stringconstant
Rewrite call of rtl::OUString::operator= with empty string constant
argument as call of rtl::OUString::clear.
Change-Id: Ib53fcfcca95e8c46f8ae24d648d7b9bf421df3f5
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/core/tool/interpr8.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sc/source/core/tool/interpr8.cxx b/sc/source/core/tool/interpr8.cxx index a03fbb8b3863..2c117346fbaa 100644 --- a/sc/source/core/tool/interpr8.cxx +++ b/sc/source/core/tool/interpr8.cxx @@ -1706,7 +1706,7 @@ void ScInterpreter::ScTextJoin_MS() } } else - aStr = ""; + aStr.clear(); if ( !aStr.isEmpty() || !bSkipEmpty ) { if ( !bFirst ) @@ -1766,7 +1766,7 @@ void ScInterpreter::ScTextJoin_MS() } } else - aStr = ""; + aStr.clear(); if ( !aStr.isEmpty() || !bSkipEmpty ) { if ( !bFirst ) @@ -1815,7 +1815,7 @@ void ScInterpreter::ScTextJoin_MS() } } else - aStr = ""; + aStr.clear(); if ( !aStr.isEmpty() || !bSkipEmpty ) { if ( !bFirst ) |