summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-02-01 11:56:21 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-02-02 09:20:47 +0000
commit98c343604dcf718b3c8ee3e38da1a50c7a0199a2 (patch)
tree5979fd35cfcdd3989f4db42afee0881a8391422b /vcl
parent04eba5f599b8ac2accfc1d6abc74a91c38616691 (diff)
boost::hash->std::hash
Change-Id: If4d1e4071995f07212fad958b0226d5824d168f8 Reviewed-on: https://gerrit.libreoffice.org/21989 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/inc/osx/saldata.hxx7
-rw-r--r--vcl/source/font/fontmetric.cxx2
2 files changed, 3 insertions, 6 deletions
diff --git a/vcl/inc/osx/saldata.hxx b/vcl/inc/osx/saldata.hxx
index b32d67b737c7..1ea8074e9b38 100644
--- a/vcl/inc/osx/saldata.hxx
+++ b/vcl/inc/osx/saldata.hxx
@@ -33,8 +33,7 @@
#include "svdata.hxx"
#include "salwtype.hxx"
-#include <boost/functional/hash.hpp>
-
+#include <functional>
#include <list>
#include <map>
#include <unordered_set>
@@ -56,10 +55,10 @@ class SystemFontList;
#define SAL_CLIPRECT_COUNT 16
class AquaSalFrame;
-struct FrameHash : public boost::hash<sal_IntPtr>
+struct FrameHash : public std::hash<sal_IntPtr>
{
size_t operator()(const AquaSalFrame* frame) const
- { return boost::hash<sal_IntPtr>::operator()( reinterpret_cast<const sal_IntPtr>(frame) ); }
+ { return std::hash<sal_IntPtr>::operator()( reinterpret_cast<const sal_IntPtr>(frame) ); }
};
#define INVALID_CURSOR_PTR reinterpret_cast<NSCursor*>(0xdeadbeef)
diff --git a/vcl/source/font/fontmetric.cxx b/vcl/source/font/fontmetric.cxx
index 728d84f33522..7a40ce51afe5 100644
--- a/vcl/source/font/fontmetric.cxx
+++ b/vcl/source/font/fontmetric.cxx
@@ -29,8 +29,6 @@
#include <set>
#include <cstdio>
-#include <boost/functional/hash.hpp>
-
using namespace ::com::sun::star;
using namespace ::com::sun::star::uno;
using namespace ::rtl;