summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorArnaud Versini <arnaud.versini@gmail.com>2017-05-02 13:04:17 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-05-04 08:39:18 +0200
commit1fdb0e1897b063c7a0f29ed5a0de440ea057b2ed (patch)
treec3b81991090cefd9468fe0d3dced9da6fb073971 /sc
parent0025fc13d805751f8eeb14febbdd0033e0a6d91e (diff)
Replace all OUString("") with OUString()
Change-Id: Ie14c4d76cb61cfbe0410103adfc1afc8ade0f3e0 Reviewed-on: https://gerrit.libreoffice.org/37146 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc')
-rw-r--r--sc/qa/unit/helper/qahelper.cxx2
-rw-r--r--sc/qa/unit/subsequent_export-test.cxx2
-rw-r--r--sc/qa/unit/ucalc_formula.cxx2
-rw-r--r--sc/source/core/data/dptabsrc.cxx4
-rw-r--r--sc/source/filter/orcus/filterdetect.cxx2
-rw-r--r--sc/source/ui/condformat/condformathelper.cxx2
6 files changed, 7 insertions, 7 deletions
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<sheet::TableFilterField>(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)