Kaydet (Commit) 9bf4bb78 authored tarafından Kohei Yoshida's avatar Kohei Yoshida

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...
üst cbde0ff2
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment