summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMesut Çifci <mesutcifci97@gmail.com>2020-01-15 11:33:29 +0300
committerStephan Bergmann <sbergman@redhat.com>2020-01-15 14:54:39 +0100
commitb8f02637131fcfa499a6397914fdf4687c88053d (patch)
tree24e88369d50dbb2ed519d99f6e06dc8c104d455b
parent15abfe9ae976a0d940725cdd570facc372981393 (diff)
tdf#88205 Adapt uses of css::uno::Sequence to use initializer_list ctor
Change-Id: Ib58c66590c60175d7984af55d23b7c55a6a2383e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/86828 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
-rw-r--r--sax/source/expatwrap/sax_expat.cxx3
-rw-r--r--sax/source/expatwrap/saxwriter.cxx3
-rw-r--r--sax/source/fastparser/fastparser.cxx3
-rw-r--r--sc/source/filter/oox/ooxformulaparser.cxx3
-rw-r--r--sc/source/ui/unoobj/exceldetect.cxx3
-rw-r--r--sccomp/source/solver/SolverComponent.cxx3
-rw-r--r--sfx2/source/appl/appinit.cxx3
-rw-r--r--sfx2/source/appl/macroloader.cxx3
-rw-r--r--svtools/source/filter/SvFilterOptionsDialog.cxx3
-rw-r--r--svtools/source/uno/unoevent.cxx4
-rw-r--r--svtools/source/uno/wizard/unowizard.cxx3
-rw-r--r--sw/source/core/docnode/finalthreadmanager.cxx3
-rw-r--r--sw/source/core/unocore/unocoll.cxx24
-rw-r--r--sw/source/core/unocore/unodraw.cxx3
-rw-r--r--sw/source/core/unocore/unoportenum.cxx3
-rw-r--r--sw/source/uibase/ribbar/workctrl.cxx3
16 files changed, 23 insertions, 47 deletions
diff --git a/sax/source/expatwrap/sax_expat.cxx b/sax/source/expatwrap/sax_expat.cxx
index c55cea3f2d04..3daafda63547 100644
--- a/sax/source/expatwrap/sax_expat.cxx
+++ b/sax/source/expatwrap/sax_expat.cxx
@@ -530,8 +530,7 @@ sal_Bool SaxExpatParser::supportsService(const OUString& ServiceName)
// XServiceInfo
css::uno::Sequence< OUString > SaxExpatParser::getSupportedServiceNames()
{
- css::uno::Sequence<OUString> seq { "com.sun.star.xml.sax.Parser" };
- return seq;
+ return { "com.sun.star.xml.sax.Parser" };
}
diff --git a/sax/source/expatwrap/saxwriter.cxx b/sax/source/expatwrap/saxwriter.cxx
index ec59324524bf..f4f4c4bae142 100644
--- a/sax/source/expatwrap/saxwriter.cxx
+++ b/sax/source/expatwrap/saxwriter.cxx
@@ -1047,8 +1047,7 @@ sal_Bool SAXWriter::supportsService(const OUString& ServiceName)
// XServiceInfo
Sequence< OUString > SAXWriter::getSupportedServiceNames()
{
- Sequence<OUString> seq { "com.sun.star.xml.sax.Writer" };
- return seq;
+ return { "com.sun.star.xml.sax.Writer" };
}
void SAXWriter::startDocument()
diff --git a/sax/source/fastparser/fastparser.cxx b/sax/source/fastparser/fastparser.cxx
index 2b843d03c74f..80bff5e9fef6 100644
--- a/sax/source/fastparser/fastparser.cxx
+++ b/sax/source/fastparser/fastparser.cxx
@@ -1419,8 +1419,7 @@ sal_Bool FastSaxParser::supportsService( const OUString& ServiceName )
uno::Sequence<OUString> FastSaxParser::getSupportedServiceNames()
{
- Sequence<OUString> seq { "com.sun.star.xml.sax.FastParser" };
- return seq;
+ return { "com.sun.star.xml.sax.FastParser" };
}
} // namespace sax_fastparser
diff --git a/sc/source/filter/oox/ooxformulaparser.cxx b/sc/source/filter/oox/ooxformulaparser.cxx
index 51422101d3ed..73e3565933b1 100644
--- a/sc/source/filter/oox/ooxformulaparser.cxx
+++ b/sc/source/filter/oox/ooxformulaparser.cxx
@@ -119,8 +119,7 @@ sal_Bool SAL_CALL OOXMLFormulaParser::supportsService( const OUString& rService
Sequence< OUString > SAL_CALL OOXMLFormulaParser::getSupportedServiceNames()
{
- Sequence< OUString > aServiceNames { "com.sun.star.sheet.FilterFormulaParser" };
- return aServiceNames;
+ return { "com.sun.star.sheet.FilterFormulaParser" };
}
// com.sun.star.lang.XInitialization interface --------------------------------
diff --git a/sc/source/ui/unoobj/exceldetect.cxx b/sc/source/ui/unoobj/exceldetect.cxx
index 41c5c01c9367..a56497f5cde3 100644
--- a/sc/source/ui/unoobj/exceldetect.cxx
+++ b/sc/source/ui/unoobj/exceldetect.cxx
@@ -37,8 +37,7 @@ sal_Bool ScExcelBiffDetect::supportsService( const OUString& aName )
uno::Sequence<OUString> ScExcelBiffDetect::getSupportedServiceNames()
{
- uno::Sequence<OUString> aNames { "com.sun.star.frame.ExtendedTypeDetection" };
- return aNames;
+ return { "com.sun.star.frame.ExtendedTypeDetection" };
}
namespace {
diff --git a/sccomp/source/solver/SolverComponent.cxx b/sccomp/source/solver/SolverComponent.cxx
index 58ce00adf284..3df7bf5d5887 100644
--- a/sccomp/source/solver/SolverComponent.cxx
+++ b/sccomp/source/solver/SolverComponent.cxx
@@ -248,8 +248,7 @@ sal_Bool SAL_CALL SolverComponent::supportsService( const OUString& rServiceName
uno::Sequence<OUString> SAL_CALL SolverComponent::getSupportedServiceNames()
{
- uno::Sequence<OUString> aServiceNames { "com.sun.star.sheet.Solver" };
- return aServiceNames;
+ return { "com.sun.star.sheet.Solver" };
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sfx2/source/appl/appinit.cxx b/sfx2/source/appl/appinit.cxx
index 472a72e56223..c1584878aaca 100644
--- a/sfx2/source/appl/appinit.cxx
+++ b/sfx2/source/appl/appinit.cxx
@@ -124,8 +124,7 @@ Sequence< OUString > SAL_CALL SfxTerminateListener_Impl::getSupportedServiceName
// The desktop must know, which listener will terminate the SfxApplication in real !
// It must call this special listener as last one ... otherwise we shutdown the SfxApplication BEFORE other listener
// can react ...
- Sequence< OUString > lNames { "com.sun.star.frame.TerminateListener" };
- return lNames;
+ return { "com.sun.star.frame.TerminateListener" };
}
diff --git a/sfx2/source/appl/macroloader.cxx b/sfx2/source/appl/macroloader.cxx
index 912b555c829b..46090f712665 100644
--- a/sfx2/source/appl/macroloader.cxx
+++ b/sfx2/source/appl/macroloader.cxx
@@ -65,8 +65,7 @@ sal_Bool SAL_CALL SfxMacroLoader::supportsService(OUString const & ServiceName)
css::uno::Sequence<OUString> SAL_CALL SfxMacroLoader::getSupportedServiceNames()
{
- css::uno::Sequence< OUString > aSeq { "com.sun.star.frame.ProtocolHandler" };
- return aSeq;
+ return { "com.sun.star.frame.ProtocolHandler" };
}
SfxObjectShell* SfxMacroLoader::GetObjectShell_Impl()
diff --git a/svtools/source/filter/SvFilterOptionsDialog.cxx b/svtools/source/filter/SvFilterOptionsDialog.cxx
index b63b70af5332..7203cfd5e41b 100644
--- a/svtools/source/filter/SvFilterOptionsDialog.cxx
+++ b/svtools/source/filter/SvFilterOptionsDialog.cxx
@@ -142,8 +142,7 @@ sal_Bool SAL_CALL SvFilterOptionsDialog::supportsService( const OUString& rServi
}
uno::Sequence< OUString > SAL_CALL SvFilterOptionsDialog::getSupportedServiceNames()
{
- uno::Sequence<OUString> aRet { "com.sun.star.ui.dialogs.FilterOptionsDialog" };
- return aRet;
+ return { "com.sun.star.ui.dialogs.FilterOptionsDialog" };
}
// XPropertyAccess
diff --git a/svtools/source/uno/unoevent.cxx b/svtools/source/uno/unoevent.cxx
index 42a07bafb831..9b1ffe41bf2a 100644
--- a/svtools/source/uno/unoevent.cxx
+++ b/svtools/source/uno/unoevent.cxx
@@ -317,9 +317,7 @@ sal_Bool SvBaseEventDescriptor::supportsService(const OUString& rServiceName)
Sequence<OUString> SvBaseEventDescriptor::getSupportedServiceNames()
{
- Sequence<OUString> aSequence { sAPI_ServiceName };
-
- return aSequence;
+ return { sAPI_ServiceName };
}
SvMacroItemId SvBaseEventDescriptor::mapNameToEventID(const OUString& rName) const
diff --git a/svtools/source/uno/wizard/unowizard.cxx b/svtools/source/uno/wizard/unowizard.cxx
index decbada6b887..9155cccab320 100644
--- a/svtools/source/uno/wizard/unowizard.cxx
+++ b/svtools/source/uno/wizard/unowizard.cxx
@@ -260,8 +260,7 @@ namespace {
Sequence< OUString > SAL_CALL Wizard::getSupportedServiceNames()
{
- Sequence< OUString > aServices { "com.sun.star.ui.dialogs.Wizard" };
- return aServices;
+ return { "com.sun.star.ui.dialogs.Wizard" };
}
Reference< XPropertySetInfo > SAL_CALL Wizard::getPropertySetInfo()
diff --git a/sw/source/core/docnode/finalthreadmanager.cxx b/sw/source/core/docnode/finalthreadmanager.cxx
index 3d9eb3859acd..80ddd75c3da9 100644
--- a/sw/source/core/docnode/finalthreadmanager.cxx
+++ b/sw/source/core/docnode/finalthreadmanager.cxx
@@ -284,8 +284,7 @@ sal_Bool SAL_CALL FinalThreadManager::supportsService(OUString const & serviceNa
css::uno::Sequence< OUString > SAL_CALL FinalThreadManager::getSupportedServiceNames()
{
- css::uno::Sequence< OUString > s { "com.sun.star.util.JobManager" };
- return s;
+ return { "com.sun.star.util.JobManager" };
}
// css::util::XJobManager:
diff --git a/sw/source/core/unocore/unocoll.cxx b/sw/source/core/unocore/unocoll.cxx
index 213e040b2d95..bf8ea87af1e4 100644
--- a/sw/source/core/unocore/unocoll.cxx
+++ b/sw/source/core/unocore/unocoll.cxx
@@ -974,8 +974,7 @@ sal_Bool SwXTextTables::supportsService(const OUString& rServiceName)
uno::Sequence< OUString > SwXTextTables::getSupportedServiceNames()
{
- uno::Sequence< OUString > aRet { "com.sun.star.text.TextTables" };
- return aRet;
+ return { "com.sun.star.text.TextTables" };
}
uno::Reference<text::XTextTable> SwXTextTables::GetObject(SwFrameFormat& rFormat)
@@ -1292,8 +1291,7 @@ sal_Bool SwXTextFrames::supportsService(const OUString& rServiceName)
Sequence< OUString > SwXTextFrames::getSupportedServiceNames()
{
- Sequence<OUString> aRet { "com.sun.star.text.TextFrames" };
- return aRet;
+ return { "com.sun.star.text.TextFrames" };
}
SwXTextFrames::SwXTextFrames(SwDoc* _pDoc) :
@@ -1317,8 +1315,7 @@ sal_Bool SwXTextGraphicObjects::supportsService(const OUString& rServiceName)
Sequence< OUString > SwXTextGraphicObjects::getSupportedServiceNames()
{
- Sequence<OUString> aRet { "com.sun.star.text.TextGraphicObjects" };
- return aRet;
+ return { "com.sun.star.text.TextGraphicObjects" };
}
SwXTextGraphicObjects::SwXTextGraphicObjects(SwDoc* _pDoc) :
@@ -1342,8 +1339,7 @@ sal_Bool SwXTextEmbeddedObjects::supportsService(const OUString& rServiceName)
Sequence< OUString > SwXTextEmbeddedObjects::getSupportedServiceNames()
{
- Sequence<OUString> aRet { "com.sun.star.text.TextEmbeddedObjects" };
- return aRet;
+ return { "com.sun.star.text.TextEmbeddedObjects" };
}
SwXTextEmbeddedObjects::SwXTextEmbeddedObjects(SwDoc* _pDoc) :
@@ -1367,8 +1363,7 @@ sal_Bool SwXTextSections::supportsService(const OUString& rServiceName)
Sequence< OUString > SwXTextSections::getSupportedServiceNames()
{
- Sequence<OUString> aRet { "com.sun.star.text.TextSections" };
- return aRet;
+ return { "com.sun.star.text.TextSections" };
}
SwXTextSections::SwXTextSections(SwDoc* _pDoc) :
@@ -1543,8 +1538,7 @@ sal_Bool SwXBookmarks::supportsService(const OUString& rServiceName)
Sequence< OUString > SwXBookmarks::getSupportedServiceNames()
{
- Sequence< OUString > aRet { "com.sun.star.text.Bookmarks" };
- return aRet;
+ return { "com.sun.star.text.Bookmarks" };
}
SwXBookmarks::SwXBookmarks(SwDoc* _pDoc) :
@@ -1742,8 +1736,7 @@ sal_Bool SwXFootnotes::supportsService(const OUString& rServiceName)
Sequence< OUString > SwXFootnotes::getSupportedServiceNames()
{
- Sequence<OUString> aRet { "com.sun.star.text.Footnotes" };
- return aRet;
+ return { "com.sun.star.text.Footnotes" };
}
SwXFootnotes::SwXFootnotes(bool bEnd, SwDoc* _pDoc)
@@ -1838,8 +1831,7 @@ sal_Bool SwXReferenceMarks::supportsService(const OUString& rServiceName)
Sequence< OUString > SwXReferenceMarks::getSupportedServiceNames()
{
- Sequence<OUString> aRet { "com.sun.star.text.ReferenceMarks" };
- return aRet;
+ return { "com.sun.star.text.ReferenceMarks" };
}
SwXReferenceMarks::SwXReferenceMarks(SwDoc* _pDoc) :
diff --git a/sw/source/core/unocore/unodraw.cxx b/sw/source/core/unocore/unodraw.cxx
index 685f29fbd1da..492faee1582e 100644
--- a/sw/source/core/unocore/unodraw.cxx
+++ b/sw/source/core/unocore/unodraw.cxx
@@ -464,8 +464,7 @@ sal_Bool SwXDrawPage::supportsService(const OUString& rServiceName)
uno::Sequence< OUString > SwXDrawPage::getSupportedServiceNames()
{
- uno::Sequence<OUString> aRet { "com.sun.star.drawing.GenericDrawPage" };
- return aRet;
+ return { "com.sun.star.drawing.GenericDrawPage" };
}
SwXDrawPage::SwXDrawPage(SwDoc* pDc) :
diff --git a/sw/source/core/unocore/unoportenum.cxx b/sw/source/core/unocore/unoportenum.cxx
index 835a592d00af..cea5fec10069 100644
--- a/sw/source/core/unocore/unoportenum.cxx
+++ b/sw/source/core/unocore/unoportenum.cxx
@@ -326,8 +326,7 @@ SwXTextPortionEnumeration::supportsService(const OUString& rServiceName)
Sequence< OUString > SwXTextPortionEnumeration::getSupportedServiceNames()
{
- Sequence<OUString> aRet { "com.sun.star.text.TextPortionEnumeration" };
- return aRet;
+ return { "com.sun.star.text.TextPortionEnumeration" };
}
SwXTextPortionEnumeration::SwXTextPortionEnumeration(
diff --git a/sw/source/uibase/ribbar/workctrl.cxx b/sw/source/uibase/ribbar/workctrl.cxx
index 65f1f48acf0e..a7f76cf9aff0 100644
--- a/sw/source/uibase/ribbar/workctrl.cxx
+++ b/sw/source/uibase/ribbar/workctrl.cxx
@@ -871,8 +871,7 @@ OUString SAL_CALL NavElementToolBoxControl::getImplementationName()
uno::Sequence< OUString > SAL_CALL NavElementToolBoxControl::getSupportedServiceNames()
{
- uno::Sequence<OUString> aSNS { "com.sun.star.frame.ToolbarController" };
- return aSNS;
+ return { "com.sun.star.frame.ToolbarController" };
}
// XComponent