From 8569c6d0ad70c32a08774fa6f5ec25b465ea98ee Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 16 Nov 2015 09:23:41 +0200 Subject: use initialiser list for Sequence Change-Id: Ia5e47261d1fc6fac2d046656c05a1c5eedb07e02 Reviewed-on: https://gerrit.libreoffice.org/19978 Tested-by: Jenkins Reviewed-by: Noel Grandin --- stoc/source/implementationregistration/implreg.cxx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'stoc/source/implementationregistration') diff --git a/stoc/source/implementationregistration/implreg.cxx b/stoc/source/implementationregistration/implreg.cxx index 886ead94c8b4..008991d91046 100644 --- a/stoc/source/implementationregistration/implreg.cxx +++ b/stoc/source/implementationregistration/implreg.cxx @@ -367,9 +367,7 @@ static void createUniqueSubEntry(const Reference < XRegistryKey > & xSuperKey, } } else { - Sequence implEntriesNew(1); - - implEntriesNew.getArray()[0] = value; + Sequence implEntriesNew { value }; xSuperKey->setAsciiListValue(implEntriesNew); } -- cgit