summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@suse.com>2011-11-22 00:05:59 -0500
committerKohei Yoshida <kohei.yoshida@suse.com>2011-11-22 00:08:04 -0500
commit9bf4bb78806683d64514928b7b091634003efea8 (patch)
treecfb2f98c31f1922d12f4e00acee1eb10900c5cc0
parentcbde0ff28bcf9cf0271324fae879df39c2710f48 (diff)
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...
-rw-r--r--sc/source/core/inc/interpre.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/core/inc/interpre.hxx b/sc/source/core/inc/interpre.hxx
index 3892eaabdf21..d35b53d6afe1 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;