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

Tor Lillqvist tml at collabora.com
Tue Sep 8 23:29:12 PDT 2015


 sc/qa/unit/ucalc_formula.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit e4757b79e2938e48a57d129413df3f06bf638b4d
Author: Tor Lillqvist <tml at collabora.com>
Date:   Wed Sep 9 09:19:00 2015 +0300

    WaE: loplugin:stringconstant
    
    Elide construction of rtl::OUString with string constant argument in
    call of rtl::operator+.
    
    Change-Id: Ic5bce873550d9755094bbd5a0867994d1670e02a

diff --git a/sc/qa/unit/ucalc_formula.cxx b/sc/qa/unit/ucalc_formula.cxx
index 675e517..5df5457 100644
--- a/sc/qa/unit/ucalc_formula.cxx
+++ b/sc/qa/unit/ucalc_formula.cxx
@@ -5596,7 +5596,7 @@ void Test::testFuncTableRef()
         OUString aFormula( OUString::createFromAscii( pColumn2Formula));
         ScAddress aPos(1,5,0);
         OUString aPrefix( aPos.Format(SCA_VALID) + " " + aFormula + " : ");
-        CPPUNIT_ASSERT_EQUAL( aPrefix + OUString("448"), aPrefix + m_pDoc->GetString( aPos));
+        CPPUNIT_ASSERT_EQUAL( OUString(aPrefix + "448"), OUString(aPrefix + m_pDoc->GetString(aPos)));
     }
 
     // Set header in column B. Use ScDocFunc to have table column names refreshed.
@@ -5772,7 +5772,7 @@ void Test::testFuncTableRef()
         OUString aFormula( OUString::createFromAscii( pColumn3Formula));
         ScAddress aPos(5,13,0);
         OUString aPrefix( aPos.Format(SCA_VALID) + " " + aFormula + " : ");
-        CPPUNIT_ASSERT_EQUAL( aPrefix + OUString("448"), aPrefix + m_pDoc->GetString( aPos));
+        CPPUNIT_ASSERT_EQUAL( OUString(aPrefix + "448"), OUString(aPrefix + m_pDoc->GetString(aPos)));
     }
 
     m_pDoc->DeleteTab(0);


More information about the Libreoffice-commits mailing list