summaryrefslogtreecommitdiff
path: root/sdext
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2021-05-01 22:13:37 +0900
committerTomaž Vajngerl <quikee@gmail.com>2021-05-11 12:28:24 +0200
commiteb6819e74a66750235d3a4a894479faeee8146e2 (patch)
treec898ab63731449cf5176f35a16bacea0bb58f864 /sdext
parente6c0c282be59a5198932604d6c40de837b7cb548 (diff)
change usage of boost::hash_combine to o3tl::hash_combine
Change-Id: I840518a36ac43d36c95f38e09c7bfcfe1a25a525 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114984 Tested-by: Tomaž Vajngerl <quikee@gmail.com> Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'sdext')
-rw-r--r--sdext/source/pdfimport/inc/pdfihelper.hxx62
1 files changed, 31 insertions, 31 deletions
diff --git a/sdext/source/pdfimport/inc/pdfihelper.hxx b/sdext/source/pdfimport/inc/pdfihelper.hxx
index ad5ffa80f6b3..aa3a22bd2b67 100644
--- a/sdext/source/pdfimport/inc/pdfihelper.hxx
+++ b/sdext/source/pdfimport/inc/pdfihelper.hxx
@@ -32,7 +32,7 @@
#include <unordered_map>
#include <vector>
-#include <boost/functional/hash.hpp>
+#include <o3tl/hash_combine.hxx>
// virtual resolution of the PDF OutputDev in dpi
#define PDFI_OUTDEV_RESOLUTION 7200
@@ -81,12 +81,12 @@ namespace pdfi
size_t operator()(const FontAttributes& rFont ) const
{
std::size_t seed = 0;
- boost::hash_combine(seed, rFont.familyName.hashCode());
- boost::hash_combine(seed, rFont.isBold);
- boost::hash_combine(seed, rFont.isItalic);
- boost::hash_combine(seed, rFont.isUnderline);
- boost::hash_combine(seed, rFont.isOutline);
- boost::hash_combine(seed, rFont.size);
+ o3tl::hash_combine(seed, rFont.familyName.hashCode());
+ o3tl::hash_combine(seed, rFont.isBold);
+ o3tl::hash_combine(seed, rFont.isItalic);
+ o3tl::hash_combine(seed, rFont.isUnderline);
+ o3tl::hash_combine(seed, rFont.isOutline);
+ o3tl::hash_combine(seed, rFont.size);
return seed;
}
};
@@ -184,30 +184,30 @@ namespace pdfi
size_t operator()(const GraphicsContext& rGC ) const
{
std::size_t seed = 0;
- boost::hash_combine(seed, rGC.LineColor.Red);
- boost::hash_combine(seed, rGC.LineColor.Green);
- boost::hash_combine(seed, rGC.LineColor.Blue);
- boost::hash_combine(seed, rGC.LineColor.Alpha);
- boost::hash_combine(seed, rGC.FillColor.Red);
- boost::hash_combine(seed, rGC.FillColor.Green);
- boost::hash_combine(seed, rGC.FillColor.Blue);
- boost::hash_combine(seed, rGC.FillColor.Alpha);
- boost::hash_combine(seed, rGC.LineJoin);
- boost::hash_combine(seed, rGC.LineCap);
- boost::hash_combine(seed, rGC.BlendMode);
- boost::hash_combine(seed, rGC.LineWidth);
- boost::hash_combine(seed, rGC.Flatness);
- boost::hash_combine(seed, rGC.MiterLimit);
- boost::hash_combine(seed, rGC.DashArray.size());
- boost::hash_combine(seed, rGC.FontId);
- boost::hash_combine(seed, rGC.TextRenderMode);
- boost::hash_combine(seed, rGC.Transformation.get( 0, 0 ));
- boost::hash_combine(seed, rGC.Transformation.get( 1, 0 ));
- boost::hash_combine(seed, rGC.Transformation.get( 0, 1 ));
- boost::hash_combine(seed, rGC.Transformation.get( 1, 1 ));
- boost::hash_combine(seed, rGC.Transformation.get( 0, 2 ));
- boost::hash_combine(seed, rGC.Transformation.get( 1, 2 ));
- boost::hash_combine(seed, rGC.Clip.count() ? rGC.Clip.getB2DPolygon(0).count() : 0);
+ o3tl::hash_combine(seed, rGC.LineColor.Red);
+ o3tl::hash_combine(seed, rGC.LineColor.Green);
+ o3tl::hash_combine(seed, rGC.LineColor.Blue);
+ o3tl::hash_combine(seed, rGC.LineColor.Alpha);
+ o3tl::hash_combine(seed, rGC.FillColor.Red);
+ o3tl::hash_combine(seed, rGC.FillColor.Green);
+ o3tl::hash_combine(seed, rGC.FillColor.Blue);
+ o3tl::hash_combine(seed, rGC.FillColor.Alpha);
+ o3tl::hash_combine(seed, rGC.LineJoin);
+ o3tl::hash_combine(seed, rGC.LineCap);
+ o3tl::hash_combine(seed, rGC.BlendMode);
+ o3tl::hash_combine(seed, rGC.LineWidth);
+ o3tl::hash_combine(seed, rGC.Flatness);
+ o3tl::hash_combine(seed, rGC.MiterLimit);
+ o3tl::hash_combine(seed, rGC.DashArray.size());
+ o3tl::hash_combine(seed, rGC.FontId);
+ o3tl::hash_combine(seed, rGC.TextRenderMode);
+ o3tl::hash_combine(seed, rGC.Transformation.get( 0, 0 ));
+ o3tl::hash_combine(seed, rGC.Transformation.get( 1, 0 ));
+ o3tl::hash_combine(seed, rGC.Transformation.get( 0, 1 ));
+ o3tl::hash_combine(seed, rGC.Transformation.get( 1, 1 ));
+ o3tl::hash_combine(seed, rGC.Transformation.get( 0, 2 ));
+ o3tl::hash_combine(seed, rGC.Transformation.get( 1, 2 ));
+ o3tl::hash_combine(seed, rGC.Clip.count() ? rGC.Clip.getB2DPolygon(0).count() : 0);
return seed;
}
};