[Libreoffice-commits] core.git: sc/source

Tor Lillqvist tml at collabora.com
Tue Apr 26 17:39:20 UTC 2016


 sc/source/core/tool/interpr8.cxx |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit 29da9d383e1a6a9987fe4bcfaac7421d2524a2d4
Author: Tor Lillqvist <tml at collabora.com>
Date:   Tue Apr 26 20:31:13 2016 +0300

    loplugin:stringconstant
    
    Rewrite call of rtl::OUString::operator= with empty string constant
    argument as call of rtl::OUString::clear.
    
    Change-Id: Ib53fcfcca95e8c46f8ae24d648d7b9bf421df3f5

diff --git a/sc/source/core/tool/interpr8.cxx b/sc/source/core/tool/interpr8.cxx
index a03fbb8..2c11734 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 )


More information about the Libreoffice-commits mailing list