From 98c343604dcf718b3c8ee3e38da1a50c7a0199a2 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 1 Feb 2016 11:56:21 +0200 Subject: boost::hash->std::hash Change-Id: If4d1e4071995f07212fad958b0226d5824d168f8 Reviewed-on: https://gerrit.libreoffice.org/21989 Reviewed-by: Noel Grandin Tested-by: Noel Grandin --- accessibility/inc/pch/precompiled_acc.hxx | 1 - basctl/inc/pch/precompiled_basctl.hxx | 1 - chart2/inc/pch/precompiled_chartcontroller.hxx | 1 - comphelper/inc/pch/precompiled_comphelper.hxx | 1 - connectivity/source/drivers/postgresql/pq_connection.hxx | 4 ++-- connectivity/source/drivers/postgresql/pq_databasemetadata.cxx | 2 +- cppcanvas/inc/pch/precompiled_cppcanvas.hxx | 1 - cui/inc/pch/precompiled_cui.hxx | 1 - dbaccess/inc/pch/precompiled_dba.hxx | 1 - dbaccess/inc/pch/precompiled_dbmm.hxx | 1 - desktop/inc/pch/precompiled_sofficeapp.hxx | 1 - editeng/inc/pch/precompiled_editeng.hxx | 1 - framework/inc/pch/precompiled_fwe.hxx | 1 - framework/inc/pch/precompiled_fwi.hxx | 1 - framework/inc/pch/precompiled_fwk.hxx | 1 - framework/inc/pch/precompiled_fwl.hxx | 1 - reportdesign/inc/pch/precompiled_rpt.hxx | 1 - reportdesign/inc/pch/precompiled_rptui.hxx | 1 - sc/inc/pch/precompiled_sc.hxx | 1 - sd/inc/pch/precompiled_sdui.hxx | 1 - sfx2/inc/pch/precompiled_sfx.hxx | 1 - slideshow/inc/pch/precompiled_slideshow.hxx | 1 - sot/source/sdstor/stgcache.hxx | 4 ++-- svtools/inc/pch/precompiled_svt.hxx | 1 - svx/inc/pch/precompiled_svxcore.hxx | 1 - sw/inc/pch/precompiled_msword.hxx | 1 - sw/inc/pch/precompiled_swui.hxx | 1 - sw/inc/pch/precompiled_vbaswobj.hxx | 1 - ucb/source/ucp/file/filtask.hxx | 4 ++-- vbahelper/inc/pch/precompiled_msforms.hxx | 1 - vcl/inc/osx/saldata.hxx | 7 +++---- vcl/source/font/fontmetric.cxx | 2 -- xmlsecurity/inc/pch/precompiled_xmlsecurity.hxx | 1 - 33 files changed, 10 insertions(+), 40 deletions(-) diff --git a/accessibility/inc/pch/precompiled_acc.hxx b/accessibility/inc/pch/precompiled_acc.hxx index 8410c6d9ffc4..ffc39f145244 100644 --- a/accessibility/inc/pch/precompiled_acc.hxx +++ b/accessibility/inc/pch/precompiled_acc.hxx @@ -52,7 +52,6 @@ #include #include #include -#include #include #include #include diff --git a/basctl/inc/pch/precompiled_basctl.hxx b/basctl/inc/pch/precompiled_basctl.hxx index 7382085b6c7b..490c7591911a 100644 --- a/basctl/inc/pch/precompiled_basctl.hxx +++ b/basctl/inc/pch/precompiled_basctl.hxx @@ -55,7 +55,6 @@ #include #include #include -#include #include #include #include diff --git a/chart2/inc/pch/precompiled_chartcontroller.hxx b/chart2/inc/pch/precompiled_chartcontroller.hxx index 8206c3389bdf..360fa32722b9 100644 --- a/chart2/inc/pch/precompiled_chartcontroller.hxx +++ b/chart2/inc/pch/precompiled_chartcontroller.hxx @@ -55,7 +55,6 @@ #include #include #include -#include #include #include #include diff --git a/comphelper/inc/pch/precompiled_comphelper.hxx b/comphelper/inc/pch/precompiled_comphelper.hxx index 95cf1c51e764..912be33055e4 100644 --- a/comphelper/inc/pch/precompiled_comphelper.hxx +++ b/comphelper/inc/pch/precompiled_comphelper.hxx @@ -38,7 +38,6 @@ #include #include #include -#include #include #include #include diff --git a/connectivity/source/drivers/postgresql/pq_connection.hxx b/connectivity/source/drivers/postgresql/pq_connection.hxx index ef1c7e24966f..e5ebe0bc45f2 100644 --- a/connectivity/source/drivers/postgresql/pq_connection.hxx +++ b/connectivity/source/drivers/postgresql/pq_connection.hxx @@ -56,7 +56,7 @@ #include #include -#include +#include #include #include @@ -160,7 +160,7 @@ typedef std::unordered_map < sal_Int32, OUString, - ::boost::hash< sal_Int32 >, + ::std::hash< sal_Int32 >, ::std::equal_to< sal_Int32 > > Int2StringMap; diff --git a/connectivity/source/drivers/postgresql/pq_databasemetadata.cxx b/connectivity/source/drivers/postgresql/pq_databasemetadata.cxx index a742d4aa7742..1503007c35b8 100644 --- a/connectivity/source/drivers/postgresql/pq_databasemetadata.cxx +++ b/connectivity/source/drivers/postgresql/pq_databasemetadata.cxx @@ -1406,7 +1406,7 @@ typedef std::unordered_map < sal_Int32, DatabaseTypeDescription, - ::boost::hash< sal_Int32 >, + ::std::hash< sal_Int32 >, ::std::equal_to< sal_Int32 > > Oid2DatabaseTypeDescriptionMap; diff --git a/cppcanvas/inc/pch/precompiled_cppcanvas.hxx b/cppcanvas/inc/pch/precompiled_cppcanvas.hxx index 1097ef285c46..b695b13eba44 100644 --- a/cppcanvas/inc/pch/precompiled_cppcanvas.hxx +++ b/cppcanvas/inc/pch/precompiled_cppcanvas.hxx @@ -46,7 +46,6 @@ #include #include #include -#include #include #include #include diff --git a/cui/inc/pch/precompiled_cui.hxx b/cui/inc/pch/precompiled_cui.hxx index 976d2848e65c..36fa752b552a 100644 --- a/cui/inc/pch/precompiled_cui.hxx +++ b/cui/inc/pch/precompiled_cui.hxx @@ -54,7 +54,6 @@ #include #include #include -#include #include #include #include diff --git a/dbaccess/inc/pch/precompiled_dba.hxx b/dbaccess/inc/pch/precompiled_dba.hxx index 491a411a795a..aa90cb2c312a 100644 --- a/dbaccess/inc/pch/precompiled_dba.hxx +++ b/dbaccess/inc/pch/precompiled_dba.hxx @@ -50,7 +50,6 @@ #include #include #include -#include #include #include #include diff --git a/dbaccess/inc/pch/precompiled_dbmm.hxx b/dbaccess/inc/pch/precompiled_dbmm.hxx index e0c606f97638..54dec4acd734 100644 --- a/dbaccess/inc/pch/precompiled_dbmm.hxx +++ b/dbaccess/inc/pch/precompiled_dbmm.hxx @@ -47,7 +47,6 @@ #include #include #include -#include #include #include #include diff --git a/desktop/inc/pch/precompiled_sofficeapp.hxx b/desktop/inc/pch/precompiled_sofficeapp.hxx index a0dbbf5bb870..c432c228fdb5 100644 --- a/desktop/inc/pch/precompiled_sofficeapp.hxx +++ b/desktop/inc/pch/precompiled_sofficeapp.hxx @@ -49,7 +49,6 @@ #include #include #include -#include #include #include #include diff --git a/editeng/inc/pch/precompiled_editeng.hxx b/editeng/inc/pch/precompiled_editeng.hxx index 7945ababe177..ee69b6b25a71 100644 --- a/editeng/inc/pch/precompiled_editeng.hxx +++ b/editeng/inc/pch/precompiled_editeng.hxx @@ -49,7 +49,6 @@ #include #include #include -#include #include #include #include diff --git a/framework/inc/pch/precompiled_fwe.hxx b/framework/inc/pch/precompiled_fwe.hxx index e6e0d092bf64..ed4ba1336d74 100644 --- a/framework/inc/pch/precompiled_fwe.hxx +++ b/framework/inc/pch/precompiled_fwe.hxx @@ -49,7 +49,6 @@ #include #include #include -#include #include #include #include diff --git a/framework/inc/pch/precompiled_fwi.hxx b/framework/inc/pch/precompiled_fwi.hxx index 003a900ecfec..2ace09193c47 100644 --- a/framework/inc/pch/precompiled_fwi.hxx +++ b/framework/inc/pch/precompiled_fwi.hxx @@ -44,7 +44,6 @@ #include #include #include -#include #include #include #include diff --git a/framework/inc/pch/precompiled_fwk.hxx b/framework/inc/pch/precompiled_fwk.hxx index 022786f5ce67..2b8298876c50 100644 --- a/framework/inc/pch/precompiled_fwk.hxx +++ b/framework/inc/pch/precompiled_fwk.hxx @@ -53,7 +53,6 @@ #include #include #include -#include #include #include #include diff --git a/framework/inc/pch/precompiled_fwl.hxx b/framework/inc/pch/precompiled_fwl.hxx index 4f6e441acbef..862d9242deb7 100644 --- a/framework/inc/pch/precompiled_fwl.hxx +++ b/framework/inc/pch/precompiled_fwl.hxx @@ -58,7 +58,6 @@ #include #include #include -#include #include #include #include diff --git a/reportdesign/inc/pch/precompiled_rpt.hxx b/reportdesign/inc/pch/precompiled_rpt.hxx index 051c05a9d251..adb53d9445d4 100644 --- a/reportdesign/inc/pch/precompiled_rpt.hxx +++ b/reportdesign/inc/pch/precompiled_rpt.hxx @@ -54,7 +54,6 @@ #include #include #include -#include #include #include #include diff --git a/reportdesign/inc/pch/precompiled_rptui.hxx b/reportdesign/inc/pch/precompiled_rptui.hxx index e1510844127f..0b85b67f5b59 100644 --- a/reportdesign/inc/pch/precompiled_rptui.hxx +++ b/reportdesign/inc/pch/precompiled_rptui.hxx @@ -57,7 +57,6 @@ #include #include #include -#include #include #include #include diff --git a/sc/inc/pch/precompiled_sc.hxx b/sc/inc/pch/precompiled_sc.hxx index 505a163ecdc7..ed95b2d3e7e0 100644 --- a/sc/inc/pch/precompiled_sc.hxx +++ b/sc/inc/pch/precompiled_sc.hxx @@ -58,7 +58,6 @@ #include #include #include -#include #include #include #include diff --git a/sd/inc/pch/precompiled_sdui.hxx b/sd/inc/pch/precompiled_sdui.hxx index ab9d1bd4a1d7..a5901f266584 100644 --- a/sd/inc/pch/precompiled_sdui.hxx +++ b/sd/inc/pch/precompiled_sdui.hxx @@ -53,7 +53,6 @@ #include #include #include -#include #include #include #include diff --git a/sfx2/inc/pch/precompiled_sfx.hxx b/sfx2/inc/pch/precompiled_sfx.hxx index 0d6ba35618fb..3b7cecc02542 100644 --- a/sfx2/inc/pch/precompiled_sfx.hxx +++ b/sfx2/inc/pch/precompiled_sfx.hxx @@ -42,7 +42,6 @@ #include #include #include -#include #include #include #include diff --git a/slideshow/inc/pch/precompiled_slideshow.hxx b/slideshow/inc/pch/precompiled_slideshow.hxx index 19356d905de5..aee384cdbe09 100644 --- a/slideshow/inc/pch/precompiled_slideshow.hxx +++ b/slideshow/inc/pch/precompiled_slideshow.hxx @@ -55,7 +55,6 @@ #include #include #include -#include #include #include #include diff --git a/sot/source/sdstor/stgcache.hxx b/sot/source/sdstor/stgcache.hxx index 97cada204e74..b9d0fab53778 100644 --- a/sot/source/sdstor/stgcache.hxx +++ b/sot/source/sdstor/stgcache.hxx @@ -26,9 +26,9 @@ #include #include #include -#include #include #include +#include class UCBStorageStream; class StgPage; @@ -40,7 +40,7 @@ class StgCache typedef std::unordered_map < sal_Int32, rtl::Reference< StgPage >, - boost::hash< sal_Int32 >, std::equal_to< sal_Int32 > + std::hash< sal_Int32 >, std::equal_to< sal_Int32 > > IndexToStgPage; typedef std::vector< rtl::Reference< StgPage > > LRUList; diff --git a/svtools/inc/pch/precompiled_svt.hxx b/svtools/inc/pch/precompiled_svt.hxx index 6953074ac0b7..b2305cbbb1d7 100644 --- a/svtools/inc/pch/precompiled_svt.hxx +++ b/svtools/inc/pch/precompiled_svt.hxx @@ -49,7 +49,6 @@ #include #include #include -#include #include #include #include diff --git a/svx/inc/pch/precompiled_svxcore.hxx b/svx/inc/pch/precompiled_svxcore.hxx index 62bc690cfb2c..fbe508ea63bc 100644 --- a/svx/inc/pch/precompiled_svxcore.hxx +++ b/svx/inc/pch/precompiled_svxcore.hxx @@ -53,7 +53,6 @@ #include #include #include -#include #include #include #include diff --git a/sw/inc/pch/precompiled_msword.hxx b/sw/inc/pch/precompiled_msword.hxx index 34cfaa1fc5b4..55efe423e8f8 100644 --- a/sw/inc/pch/precompiled_msword.hxx +++ b/sw/inc/pch/precompiled_msword.hxx @@ -62,7 +62,6 @@ #include #include #include -#include #include #include #include diff --git a/sw/inc/pch/precompiled_swui.hxx b/sw/inc/pch/precompiled_swui.hxx index 96c8fef7d98a..bebe25e5e5b9 100644 --- a/sw/inc/pch/precompiled_swui.hxx +++ b/sw/inc/pch/precompiled_swui.hxx @@ -61,7 +61,6 @@ #include #include #include -#include #include #include #include diff --git a/sw/inc/pch/precompiled_vbaswobj.hxx b/sw/inc/pch/precompiled_vbaswobj.hxx index 9a8c1b370eca..4405c9f360c0 100644 --- a/sw/inc/pch/precompiled_vbaswobj.hxx +++ b/sw/inc/pch/precompiled_vbaswobj.hxx @@ -59,7 +59,6 @@ #include #include #include -#include #include #include #include diff --git a/ucb/source/ucp/file/filtask.hxx b/ucb/source/ucp/file/filtask.hxx index a515f549a664..11886e0f7199 100644 --- a/ucb/source/ucp/file/filtask.hxx +++ b/ucb/source/ucp/file/filtask.hxx @@ -28,9 +28,9 @@ #include #include #include -#include #include "filerror.hxx" #include +#include namespace fileaccess { @@ -130,7 +130,7 @@ namespace fileaccess }; // end class TaskHandling - typedef std::unordered_map< sal_Int32,TaskHandling,boost::hash< sal_Int32 > > TaskMap; + typedef std::unordered_map< sal_Int32,TaskHandling,std::hash< sal_Int32 > > TaskMap; private: osl::Mutex m_aMutex; diff --git a/vbahelper/inc/pch/precompiled_msforms.hxx b/vbahelper/inc/pch/precompiled_msforms.hxx index 341e1ee751f2..1c6649250440 100644 --- a/vbahelper/inc/pch/precompiled_msforms.hxx +++ b/vbahelper/inc/pch/precompiled_msforms.hxx @@ -53,7 +53,6 @@ #include #include #include -#include #include #include #include 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 - +#include #include #include #include @@ -56,10 +55,10 @@ class SystemFontList; #define SAL_CLIPRECT_COUNT 16 class AquaSalFrame; -struct FrameHash : public boost::hash +struct FrameHash : public std::hash { size_t operator()(const AquaSalFrame* frame) const - { return boost::hash::operator()( reinterpret_cast(frame) ); } + { return std::hash::operator()( reinterpret_cast(frame) ); } }; #define INVALID_CURSOR_PTR reinterpret_cast(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 #include -#include - using namespace ::com::sun::star; using namespace ::com::sun::star::uno; using namespace ::rtl; diff --git a/xmlsecurity/inc/pch/precompiled_xmlsecurity.hxx b/xmlsecurity/inc/pch/precompiled_xmlsecurity.hxx index 7b6487e4dd73..6b1fe47f71a8 100644 --- a/xmlsecurity/inc/pch/precompiled_xmlsecurity.hxx +++ b/xmlsecurity/inc/pch/precompiled_xmlsecurity.hxx @@ -51,7 +51,6 @@ #include #include #include -#include #include #include #include -- cgit