Bug 88205 - Adapt uses of css::uno::Sequence to use initializer_list ctor
Summary: Adapt uses of css::uno::Sequence to use initializer_list ctor
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Libreoffice (show other bugs)
Version: unspecified
Hardware: All All
: medium normal
Assignee: Not Assigned
QA Contact:
URL:
Whiteboard: EasyHack DifficultyBeginner SkillCpp ...
Keywords:
Depends on:
Blocks:
 
Reported: 2015-01-08 16:51 UTC by Stephan Bergmann
Modified: 2015-01-08 16:51 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

Description Stephan Bergmann 2015-01-08 16:51:27 UTC
Since <http://cgit.freedesktop.org/libreoffice/core/commit/?id=d79b96cf6564187c96f5a1451ca98e2c93adee77> "css::uno::Sequence ctor with initializer_list," that class has a ctor taking a C++11 std::initializer_list, which can greatly simplify some code constructing Sequence instances (see the commit for some examples).

Find places in the code that would benefit from adapting them (good candidates are "getSupportedServiceNames" functions that return statically known OUString Sequences).

(Note that this is a LIBO_INTERNAL_ONLY feature that cannot be used in external code though; in general, just keep away from files in include/cppu, include/cppuhelper, include/sal, include/salhelper, include/uno, and odk/examples.)


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.