From 54d22957bc241fc5867fa1c720cf1266133e4e90 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Sun, 15 Nov 2015 12:17:19 +0200 Subject: use initialiser for Sequence performed using: git grep -lP 'Sequence.*OUString.*\(1\)' | xargs perl -0777 -pi -e "s/Sequence (\w+)\(1\); .*\[0\] = (\S+);/Sequence \1 { \2 };/g" Change-Id: I4da56c80fa09bfc1e8f868794001e9921431e09f Reviewed-on: https://gerrit.libreoffice.org/19968 Reviewed-by: Noel Grandin Tested-by: Noel Grandin --- xmloff/source/draw/XMLShapeStyleContext.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'xmloff/source/draw/XMLShapeStyleContext.cxx') diff --git a/xmloff/source/draw/XMLShapeStyleContext.cxx b/xmloff/source/draw/XMLShapeStyleContext.cxx index f7e97373a66e..2a80b436737a 100644 --- a/xmloff/source/draw/XMLShapeStyleContext.cxx +++ b/xmloff/source/draw/XMLShapeStyleContext.cxx @@ -264,8 +264,7 @@ void XMLShapeStyleContext::FillPropertySet( const Reference< beans::XPropertySet } catch ( const ::com::sun::star::lang::IllegalArgumentException& e ) { - Sequence aSeq(1); - aSeq[0] = sStyleName; + Sequence aSeq { sStyleName }; GetImport().SetError( XMLERROR_STYLE_PROP_VALUE | XMLERROR_FLAG_WARNING, aSeq, e.Message, nullptr ); -- cgit