[Libreoffice-commits] .: sc/source

Kohei Yoshida kohei at kemper.freedesktop.org
Mon Nov 21 21:10:25 PST 2011


 sc/source/core/inc/interpre.hxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 9bf4bb78806683d64514928b7b091634003efea8
Author: Kohei Yoshida <kohei.yoshida at suse.com>
Date:   Tue Nov 22 00:05:59 2011 -0500

    fdo#40990: Compare the wrapped pointer values.
    
    Or else the pTokenMatrixMap would never yield any match.  This was
    the only reason behind the poor performance of resolving jump matrix
    as exhibited in the aforementioned bug...

diff --git a/sc/source/core/inc/interpre.hxx b/sc/source/core/inc/interpre.hxx
index 3892eaa..d35b53d 100644
--- a/sc/source/core/inc/interpre.hxx
+++ b/sc/source/core/inc/interpre.hxx
@@ -80,7 +80,7 @@ enum ScIterFunc {
 struct FormulaTokenRef_less
 {
     bool operator () ( const formula::FormulaConstTokenRef& r1, const formula::FormulaConstTokenRef& r2 ) const
-        { return &r1 < &r2; }
+        { return r1.get() < r2.get(); }
 };
 typedef ::std::map< const formula::FormulaConstTokenRef, formula::FormulaTokenRef, FormulaTokenRef_less> ScTokenMatrixMap;
 


More information about the Libreoffice-commits mailing list