summaryrefslogtreecommitdiff
path: root/oox
diff options
context:
space:
mode:
authorFridrich Štrba <fridrich.strba@bluewin.ch>2011-02-06 14:45:40 +0100
committerFridrich Štrba <fridrich.strba@bluewin.ch>2011-02-06 14:45:40 +0100
commit110c79cd4c42d5942fa8144db3e66998b575ece3 (patch)
tree00cdf9afa1e53149c632e2c9076ac8daf96f73f4 /oox
parenta51a98a670dc317832baa144dbe67e3232fd144e (diff)
use boost::hash instead of std::hash
Diffstat (limited to 'oox')
-rw-r--r--oox/inc/oox/export/shapes.hxx2
-rw-r--r--oox/source/export/shapes.cxx4
2 files changed, 3 insertions, 3 deletions
diff --git a/oox/inc/oox/export/shapes.hxx b/oox/inc/oox/export/shapes.hxx
index da7d476cc790..528d7d7599fe 100644
--- a/oox/inc/oox/export/shapes.hxx
+++ b/oox/inc/oox/export/shapes.hxx
@@ -61,7 +61,7 @@ private:
struct ShapeHash
{
- std::hash<const char*> maHashFunction;
+ boost::hash<const char*> maHashFunction;
size_t operator()( const ::com::sun::star::uno::Reference < ::com::sun::star::drawing::XShape > ) const;
};
diff --git a/oox/source/export/shapes.cxx b/oox/source/export/shapes.cxx
index 9c3a56457a3f..3d46dc1a8a5e 100644
--- a/oox/source/export/shapes.cxx
+++ b/oox/source/export/shapes.cxx
@@ -326,7 +326,7 @@ struct StringCheck
}
};
-typedef boost::unordered_map< const char*, const char*, std::hash<const char*>, StringCheck> CustomShapeTypeTranslationHashMap;
+typedef boost::unordered_map< const char*, const char*, boost::hash<const char*>, StringCheck> CustomShapeTypeTranslationHashMap;
static CustomShapeTypeTranslationHashMap* pCustomShapeTypeTranslationHashMap = NULL;
static const char* lcl_GetPresetGeometry( const char* sShapeType )
@@ -869,7 +869,7 @@ ShapeExport& ShapeExport::WriteRectangleShape( Reference< XShape > xShape )
}
typedef ShapeExport& (ShapeExport::*ShapeConverter)( Reference< XShape > );
-typedef boost::unordered_map< const char*, ShapeConverter, std::hash<const char*>, StringCheck> NameToConvertMapType;
+typedef boost::unordered_map< const char*, ShapeConverter, boost::hash<const char*>, StringCheck> NameToConvertMapType;
static const NameToConvertMapType& lcl_GetConverters()
{