bridges/Library_net_uno.mk          |    5 +++++
 bridges/source/net_uno/net_data.cxx |    5 +++--
 2 files changed, 8 insertions(+), 2 deletions(-)

New commits:
commit 94c051433a1c02aa450606038e7930b1b586a006
Author:     Arnaud VERSINI <arnaud.vers...@pm.me>
AuthorDate: Sun Mar 23 14:50:09 2025 +0100
Commit:     Arnaud Versini <arnaud.vers...@pm.me>
CommitDate: Sun Mar 23 15:57:08 2025 +0100

    bridges : use frozen unordered map
    
    Change-Id: I8ba732ef5b0e7600c70a2ce880db343945b594bf
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/183246
    Tested-by: Arnaud Versini <arnaud.vers...@pm.me>
    Tested-by: Jenkins
    Reviewed-by: Arnaud Versini <arnaud.vers...@pm.me>

diff --git a/bridges/Library_net_uno.mk b/bridges/Library_net_uno.mk
index 5579c3178492..ef6e74dd1693 100644
--- a/bridges/Library_net_uno.mk
+++ b/bridges/Library_net_uno.mk
@@ -22,6 +22,11 @@ $(eval $(call gb_Library_use_libraries,net_uno,\
        salhelper \
 ))
 
+$(eval $(call gb_Library_use_externals,net_uno,\
+    frozen \
+))
+
+
 $(eval $(call gb_Library_add_exception_objects,net_uno,\
        bridges/source/net_uno/net_base \
        bridges/source/net_uno/net_bridge \
diff --git a/bridges/source/net_uno/net_data.cxx 
b/bridges/source/net_uno/net_data.cxx
index fde61dba230c..3e2f73a12bc5 100644
--- a/bridges/source/net_uno/net_data.cxx
+++ b/bridges/source/net_uno/net_data.cxx
@@ -11,9 +11,10 @@
 #include "net_proxy.hxx"
 
 #include <cstring>
-#include <unordered_map>
 #include <vector>
 
+#include <frozen/unordered_map.h>
+
 #include <bridges/net_uno/net_context.hxx>
 
 namespace net_uno
@@ -22,7 +23,7 @@ namespace
 {
 size_t net_sizeof(typelib_TypeClass eTypeClass)
 {
-    static const std::unordered_map<typelib_TypeClass, size_t> s_sizes{
+    static constexpr frozen::unordered_map<typelib_TypeClass, size_t, 19> 
s_sizes{
         { typelib_TypeClass_BOOLEAN, sizeof(sal_Bool) },
         { typelib_TypeClass_BYTE, sizeof(sal_Int8) },
         { typelib_TypeClass_CHAR, sizeof(sal_Unicode) },

Reply via email to