diff options
author | Tor Lillqvist <tml@collabora.com> | 2015-09-09 09:19:00 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2015-09-09 09:19:00 +0300 |
commit | e4757b79e2938e48a57d129413df3f06bf638b4d (patch) | |
tree | 031679f2a997f24e6809fc33c90d304754f44441 /sc | |
parent | 0e13c94ad3615dd20d83a95efc18b99b16e074e3 (diff) |
WaE: loplugin:stringconstant
Elide construction of rtl::OUString with string constant argument in
call of rtl::operator+.
Change-Id: Ic5bce873550d9755094bbd5a0867994d1670e02a
Diffstat (limited to 'sc')
-rw-r--r-- | sc/qa/unit/ucalc_formula.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/qa/unit/ucalc_formula.cxx b/sc/qa/unit/ucalc_formula.cxx index 675e517a7689..5df54572101d 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); |