diff options
author | Kohei Yoshida <kohei.yoshida@collabora.com> | 2013-10-19 21:35:56 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@collabora.com> | 2013-10-20 13:44:42 -0400 |
commit | 81a555edbcea7493c6981dda452bf7d20e06fc02 (patch) | |
tree | 27f73b1ff72368aa992e678b4820e3456b6d8754 /sc/inc/compare.hxx | |
parent | 73353186d58ae187f3f1ce4f206795424fb3336c (diff) |
Store SharedString in Compare::Cell.
This has a slight overhead for purely numeric comparisons.
Change-Id: I243d5c81499177b3ae93b39a1af7c2f3b954bd39
Diffstat (limited to 'sc/inc/compare.hxx')
-rw-r--r-- | sc/inc/compare.hxx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sc/inc/compare.hxx b/sc/inc/compare.hxx index 3189bc81d05a..d188d540b896 100644 --- a/sc/inc/compare.hxx +++ b/sc/inc/compare.hxx @@ -22,7 +22,7 @@ #include "queryentry.hxx" -#include "rtl/ustring.hxx" +#include "svl/sharedstring.hxx" class ScDocument; @@ -33,12 +33,11 @@ struct Compare struct Cell { double mfValue; - OUString* mpStr; + svl::SharedString maStr; bool mbValue; bool mbEmpty; Cell(); - Cell( OUString* p ); }; Cell maCells[2]; @@ -46,7 +45,7 @@ struct Compare ScQueryOp meOp; bool mbIgnoreCase; - Compare( OUString* p1, OUString* p2 ); + Compare(); }; struct CompareOptions |