[Libreoffice-commits] core.git: chart2/source

Kohei Yoshida kohei.yoshida at collabora.com
Thu Jan 2 09:38:19 PST 2014


 chart2/source/inc/PropertyHelper.hxx |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

New commits:
commit 0f13f675ed98b32cbd0a0976939334b44b97b439
Author: Kohei Yoshida <kohei.yoshida at collabora.com>
Date:   Thu Jan 2 12:37:00 2014 -0500

    It performs better to use unordered_map than std::map here.
    
    Change-Id: I5b89ac2dfbe348f0bf0b07880ccddc734b6d14ab

diff --git a/chart2/source/inc/PropertyHelper.hxx b/chart2/source/inc/PropertyHelper.hxx
index 78fb607..be066ca 100644
--- a/chart2/source/inc/PropertyHelper.hxx
+++ b/chart2/source/inc/PropertyHelper.hxx
@@ -28,13 +28,14 @@
 #include <map>
 #include "charttoolsdllapi.hxx"
 
+#include <boost/unordered_map.hpp>
+
 namespace chart
 {
 
 typedef int tPropertyValueMapKey;
 
-typedef ::std::map< tPropertyValueMapKey, ::com::sun::star::uno::Any >
-    tPropertyValueMap;
+typedef boost::unordered_map<tPropertyValueMapKey, com::sun::star::uno::Any> tPropertyValueMap;
 
 namespace PropertyHelper
 {


More information about the Libreoffice-commits mailing list