diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2018-01-13 12:50:07 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2018-01-15 08:47:30 +0100 |
commit | 7dd588423cb098eca774463ef4854f2750d7c123 (patch) | |
tree | 534c66a1be0f0a62fd911ed02a940d2ae5388286 /sc | |
parent | b89c5c111b1fafdb2b0e4fd1d8bad0a864a670bc (diff) |
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 <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/unoobj/eventuno.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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; |