From 9b5a0fd92230348b7c524305cdd249d0df709db0 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Fri, 11 Feb 2011 12:41:24 +0000 Subject: (std|boost)::hash on a const char* hashes the pointer not the contents --- oox/source/export/shapes.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'oox/source') diff --git a/oox/source/export/shapes.cxx b/oox/source/export/shapes.cxx index 3d46dc1a8a5e..624713cbc4d2 100644 --- a/oox/source/export/shapes.cxx +++ b/oox/source/export/shapes.cxx @@ -985,7 +985,7 @@ ShapeExport& ShapeExport::WriteUnknownShape( Reference< XShape > ) size_t ShapeExport::ShapeHash::operator()( const ::com::sun::star::uno::Reference < ::com::sun::star::drawing::XShape > rXShape ) const { - return maHashFunction( USS( rXShape->getShapeType() ) ); + return rXShape->getShapeType().hashCode(); } sal_Int32 ShapeExport::GetNewShapeID( const Reference< XShape > rXShape ) -- cgit