Date: prev next · Thread: first prev next last
2017 Archives by date, by thread · List index


On 08/07/2017 10:44 PM, julien2412 wrote:
But in this same method, I wonder if it'd be ok to make "sref" (see
https://opengrok.libreoffice.org/xref/core/sal/osl/unx/osxlocale.cxx#77)
static in order to avoid calling n times "getProcessLocale" method (defined
some lines above).

macosx_getLocale is only called through imp_getProcessLocale (sal/osl/unx/nlsupport.cxx), which is only called once from osl_getProcessLocale (sal/osl/unx/process_impl.cxx, controlled by the static g_process_locale struct). So n <= 1 anyway.

Context


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.