vcl/source/gdi/pdfwriter_impl.cxx |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

New commits:
commit f39f318a6f0b9e42de312fd1d606d8626e1b646d
Author:     Arnaud VERSINI <arnaud.vers...@pm.me>
AuthorDate: Sun Nov 3 15:19:45 2024 +0100
Commit:     Noel Grandin <noel.gran...@collabora.co.uk>
CommitDate: Mon Nov 11 09:06:06 2024 +0100

    vcl pdf : use frozen unordered_map instead of frozen map
    
    Change-Id: I6e9c3562fa13bf5e1adf7de55c48d1e7326d288e
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175969
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk>

diff --git a/vcl/source/gdi/pdfwriter_impl.cxx 
b/vcl/source/gdi/pdfwriter_impl.cxx
index 16a2c420d3a7..d29659aa5b42 100644
--- a/vcl/source/gdi/pdfwriter_impl.cxx
+++ b/vcl/source/gdi/pdfwriter_impl.cxx
@@ -99,7 +99,7 @@
 #include <o3tl/sorted_vector.hxx>
 #include <frozen/bits/defines.h>
 #include <frozen/bits/elsa_std.h>
-#include <frozen/map.h>
+#include <frozen/unordered_map.h>
 
 using namespace::com::sun::star;
 
@@ -1838,7 +1838,7 @@ sal_Int32 PDFWriterImpl::emitStructIDTree(sal_Int32 const 
nObject)
 
 const char* PDFWriterImpl::getAttributeTag( PDFWriter::StructAttribute eAttr )
 {
-    static constexpr auto aAttributeStrings = 
frozen::make_map<PDFWriter::StructAttribute, const char*>({
+    static constexpr auto aAttributeStrings = 
frozen::make_unordered_map<PDFWriter::StructAttribute, const char*>({
         { PDFWriter::Placement,         "Placement" },
         { PDFWriter::WritingMode,       "WritingMode" },
         { PDFWriter::SpaceBefore,       "SpaceBefore" },
@@ -1877,7 +1877,7 @@ const char* PDFWriterImpl::getAttributeTag( 
PDFWriter::StructAttribute eAttr )
 
 const char* PDFWriterImpl::getAttributeValueTag( 
PDFWriter::StructAttributeValue eVal )
 {
-    static constexpr auto aValueStrings = 
frozen::make_map<PDFWriter::StructAttributeValue, const char*>({
+    static constexpr auto aValueStrings = 
frozen::make_unordered_map<PDFWriter::StructAttributeValue, const char*>({
         { PDFWriter::NONE,       "None" },
         { PDFWriter::Block,      "Block" },
         { PDFWriter::Inline,     "Inline" },
@@ -10762,7 +10762,7 @@ void PDFWriterImpl::setOutlineItemDest( sal_Int32 
nItem, sal_Int32 nDestID )
 
 const char* PDFWriterImpl::getStructureTag( PDFWriter::StructElement eType )
 {
-    static constexpr auto aTagStrings = 
frozen::make_map<PDFWriter::StructElement, const char*>({
+    static constexpr auto aTagStrings = 
frozen::make_unordered_map<PDFWriter::StructElement, const char*>({
         { PDFWriter::NonStructElement, "NonStruct" },
         { PDFWriter::Document, "Document" },
         { PDFWriter::Part,         "Part" },

Reply via email to