summaryrefslogtreecommitdiff
path: root/starmath/source/unomodel.cxx
diff options
context:
space:
mode:
authorTakeshi Abe <tabe@fixedpoint.jp>2015-03-02 18:35:54 +0900
committerStephan Bergmann <sbergman@redhat.com>2015-03-05 11:31:14 +0100
commit9dd8510e41dbdeb39598eed04e260525810141ce (patch)
treef90479ba42e01317997588088be800b76a79f786 /starmath/source/unomodel.cxx
parent44337a1fdae8cdc68b6cf539166e60feea879a9b (diff)
tdf#88205 Adapt uses of css::uno::Sequence to use initializer_list ctor
in starmath. Change-Id: I823b352b2b6bdc247bdb3ce875953430546a3be8 Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'starmath/source/unomodel.cxx')
-rw-r--r--starmath/source/unomodel.cxx9
1 files changed, 4 insertions, 5 deletions
diff --git a/starmath/source/unomodel.cxx b/starmath/source/unomodel.cxx
index 02d8864555ec..d45f7327262a 100644
--- a/starmath/source/unomodel.cxx
+++ b/starmath/source/unomodel.cxx
@@ -422,11 +422,10 @@ uno::Sequence< OUString > SmModel::getSupportedServiceNames_Static(void)
{
SolarMutexGuard aGuard;
- uno::Sequence< OUString > aRet(2);
- OUString* pArray = aRet.getArray();
- pArray[0] = "com.sun.star.document.OfficeDocument";
- pArray[1] = "com.sun.star.formula.FormulaProperties";
- return aRet;
+ return uno::Sequence<OUString>{
+ "com.sun.star.document.OfficeDocument",
+ "com.sun.star.formula.FormulaProperties"
+ };
}
void SmModel::_setPropertyValues(const PropertyMapEntry** ppEntries, const Any* pValues)