[Bug 88205] New: Adapt uses of css::uno::Sequence to use initializer_list ctor
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Thu Jan 8 08:51:27 PST 2015
https://bugs.freedesktop.org/show_bug.cgi?id=88205
Bug ID: 88205
Summary: Adapt uses of css::uno::Sequence to use
initializer_list ctor
Product: LibreOffice
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: medium
Component: Libreoffice
Assignee: libreoffice-bugs at lists.freedesktop.org
Reporter: sbergman at redhat.com
CC: libreoffice at lists.freedesktop.org
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.)
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20150108/36e8c927/attachment.html>
More information about the LibreOffice
mailing list