From 1fdb0e1897b063c7a0f29ed5a0de440ea057b2ed Mon Sep 17 00:00:00 2001 From: Arnaud Versini Date: Tue, 2 May 2017 13:04:17 +0200 Subject: Replace all OUString("") with OUString() Change-Id: Ie14c4d76cb61cfbe0410103adfc1afc8ade0f3e0 Reviewed-on: https://gerrit.libreoffice.org/37146 Tested-by: Jenkins Reviewed-by: Noel Grandin --- sc/qa/unit/helper/qahelper.cxx | 2 +- sc/qa/unit/subsequent_export-test.cxx | 2 +- sc/qa/unit/ucalc_formula.cxx | 2 +- sc/source/core/data/dptabsrc.cxx | 4 ++-- sc/source/filter/orcus/filterdetect.cxx | 2 +- sc/source/ui/condformat/condformathelper.cxx | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) (limited to 'sc') diff --git a/sc/qa/unit/helper/qahelper.cxx b/sc/qa/unit/helper/qahelper.cxx index 6cab0e737d4e..c8ac3457f1f6 100644 --- a/sc/qa/unit/helper/qahelper.cxx +++ b/sc/qa/unit/helper/qahelper.cxx @@ -625,7 +625,7 @@ OUString EnsureSeparator(const OUStringBuffer& rFilePath) { return (rFilePath.getLength() == 0) || (rFilePath[rFilePath.getLength() - 1] != '/') ? OUString("/") : - OUString(""); + OUString(); } } diff --git a/sc/qa/unit/subsequent_export-test.cxx b/sc/qa/unit/subsequent_export-test.cxx index 8665c566820a..b003ca5222f1 100644 --- a/sc/qa/unit/subsequent_export-test.cxx +++ b/sc/qa/unit/subsequent_export-test.cxx @@ -3909,7 +3909,7 @@ void ScExportTest::testExtendedLCIDXLSX() rDoc.GetNumberFormat(nCol, nRow, 0, nNumberFormat); const SvNumberformat* pNumberFormat = pNumFormatter->GetEntry(nNumberFormat); const OUString& rFormatStr = pNumberFormat->GetFormatstring(); - const OUString aExpectedFormatStr = aLang[nRow-1] + ( (nCol==2 && nRow!=3) ? OUString("[NatNum1]") : OUString("") ) + aCalendar[nRow-1]; + const OUString aExpectedFormatStr = aLang[nRow-1] + ( (nCol==2 && nRow!=3) ? OUString("[NatNum1]") : OUString() ) + aCalendar[nRow-1]; CPPUNIT_ASSERT_EQUAL_MESSAGE("Number format lost extended LCID during Excel export", aExpectedFormatStr, rFormatStr); } diff --git a/sc/qa/unit/ucalc_formula.cxx b/sc/qa/unit/ucalc_formula.cxx index 2fbf9a6e9805..9ddf37d4f765 100644 --- a/sc/qa/unit/ucalc_formula.cxx +++ b/sc/qa/unit/ucalc_formula.cxx @@ -7694,7 +7694,7 @@ void Test::testMatConcat() CPPUNIT_ASSERT_EQUAL(OUString("x"),aStr); aPos.IncRow(); aStr = m_pDoc->GetString(aPos); - CPPUNIT_ASSERT_EQUAL(OUString(""),aStr); + CPPUNIT_ASSERT_EQUAL(OUString(),aStr); aPos.IncRow(); aStr = m_pDoc->GetString(aPos); CPPUNIT_ASSERT_EQUAL(OUString("er"),aStr); diff --git a/sc/source/core/data/dptabsrc.cxx b/sc/source/core/data/dptabsrc.cxx index 1c4149060ff4..bf1bad34664c 100644 --- a/sc/source/core/data/dptabsrc.cxx +++ b/sc/source/core/data/dptabsrc.cxx @@ -1622,9 +1622,9 @@ uno::Any SAL_CALL ScDPDimension::getPropertyValue( const OUString& aPropertyName aRet <<= uno::Sequence(0); } else if (aPropertyName == SC_UNO_DP_LAYOUTNAME) - aRet <<= mpLayoutName.get() ? *mpLayoutName : OUString(""); + aRet <<= mpLayoutName.get() ? *mpLayoutName : OUString(); else if (aPropertyName == SC_UNO_DP_FIELD_SUBTOTALNAME) - aRet <<= mpSubtotalName.get() ? *mpSubtotalName : OUString(""); + aRet <<= mpSubtotalName.get() ? *mpSubtotalName : OUString(); else if (aPropertyName == SC_UNO_DP_HAS_HIDDEN_MEMBER) aRet <<= mbHasHiddenMember; else if (aPropertyName == SC_UNO_DP_FLAGS) diff --git a/sc/source/filter/orcus/filterdetect.cxx b/sc/source/filter/orcus/filterdetect.cxx index 5c8c80b190d1..d32c84380afe 100644 --- a/sc/source/filter/orcus/filterdetect.cxx +++ b/sc/source/filter/orcus/filterdetect.cxx @@ -46,7 +46,7 @@ OrcusFormatDetect::OrcusFormatDetect() OUString OrcusFormatDetect::getImplementationName() { - return OUString(""); + return OUString(); } sal_Bool OrcusFormatDetect::supportsService(const OUString& /*rServiceName*/) diff --git a/sc/source/ui/condformat/condformathelper.cxx b/sc/source/ui/condformat/condformathelper.cxx index 12b4e00440a0..0935b05648ff 100644 --- a/sc/source/ui/condformat/condformathelper.cxx +++ b/sc/source/ui/condformat/condformathelper.cxx @@ -33,7 +33,7 @@ OUString getTextForType(ScCondFormatEntryType eType) break; } - return OUString(""); + return OUString(); } OUString getExpression(sal_Int32 nIndex) -- cgit