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.
_______________________________________________
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice

Reply via email to