diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-02-11 12:41:24 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-02-11 12:41:24 +0000 |
commit | 9b5a0fd92230348b7c524305cdd249d0df709db0 (patch) | |
tree | 5cc175f38e408ff27329243c6f4e18f08b110e49 /oox/source | |
parent | a6748fa1bd4cfa149cd577e3ce1fbff0567c0748 (diff) |
(std|boost)::hash on a const char* hashes the pointer not the contents
Diffstat (limited to 'oox/source')
-rw-r--r-- | oox/source/export/shapes.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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 ) |