sc/source/ui/unoobj/eventuno.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 7dd588423cb098eca774463ef4854f2750d7c123 Author: Stephan Bergmann <[email protected]> Date: Sat Jan 13 12:50:07 2018 +0100 Use = for initialization ...so that an automatic loplugin:cstylecast rewrite (with a to-be-committed enhanced loplugin) won't rewrite that to illegal and -Werror,-Wvexing-parse uno::Sequence<OUString> aNames(int(ScSheetEventId::COUNT)); Change-Id: I6bb0d7de8d382ad71b1510ce4a604d732899ccee Reviewed-on: https://gerrit.libreoffice.org/47866 Tested-by: Jenkins <[email protected]> Reviewed-by: Stephan Bergmann <[email protected]> diff --git a/sc/source/ui/unoobj/eventuno.cxx b/sc/source/ui/unoobj/eventuno.cxx index 15c792428e64..26284a705fe2 100644 --- a/sc/source/ui/unoobj/eventuno.cxx +++ b/sc/source/ui/unoobj/eventuno.cxx @@ -146,7 +146,7 @@ uno::Any SAL_CALL ScSheetEventsObj::getByName( const OUString& aName ) uno::Sequence<OUString> SAL_CALL ScSheetEventsObj::getElementNames() { SolarMutexGuard aGuard; - uno::Sequence<OUString> aNames((int)ScSheetEventId::COUNT); + auto aNames = uno::Sequence<OUString>((int)ScSheetEventId::COUNT); for (sal_Int32 nEvent=0; nEvent<(int)ScSheetEventId::COUNT; ++nEvent) aNames[nEvent] = ScSheetEvents::GetEventName((ScSheetEventId)nEvent); return aNames; _______________________________________________ Libreoffice-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
