https://bugs.freedesktop.org/show_bug.cgi?id=38835
Stephan Bergmann <sbergman@redhat.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |sbergman@redhat.com
--- Comment #9 from Stephan Bergmann <sbergman@redhat.com> ---
(In reply to comment #6)
Then as the first thing, try to make it non-global if it is possible, like
here:
http://cgit.freedesktop.org/libreoffice/core/commit/
?id=92bede3900e84d4f08efb81757ec95c518c7fa76
because that way this will get initialized when used for the first time. If
that is not possible, or not practical, then you can do what is suggested in
the initial comment. An example can be seen in this commit:
Note that initialization of local static variables is not thread-safe in C++03,
so the above can only be used for cases where the local static variable ends up
in code that is synchronized. Other cases need to use the rtl/instance.hxx
idioms.
--
You are receiving this mail because:
You are on the CC list for the bug.
Context
- [Bug 38835] strip out non-trivial globals before main · bugzilla-daemon
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.