summaryrefslogtreecommitdiffstats
path: root/sc/inc/queryparam.hxx
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@suse.com>2011-11-04 12:30:41 -0400
committerKohei Yoshida <kohei.yoshida@suse.com>2011-11-04 22:40:28 -0400
commit22f971d6d2070d66f0713ad5f1044b8741f12c43 (patch)
tree8ceaf692ae3d6e185673876c05d09f9c62f040c7 /sc/inc/queryparam.hxx
parentMore on avoiding direct access to pStr, also fixed several memory leaks. (diff)
downloadcore-22f971d6d2070d66f0713ad5f1044b8741f12c43.tar.gz
core-22f971d6d2070d66f0713ad5f1044b8741f12c43.zip
Set pStr private and discovered several more direct access to this member.
Diffstat (limited to 'sc/inc/queryparam.hxx')
-rw-r--r--sc/inc/queryparam.hxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/sc/inc/queryparam.hxx b/sc/inc/queryparam.hxx
index dd09aa36cffc..79330aea0932 100644
--- a/sc/inc/queryparam.hxx
+++ b/sc/inc/queryparam.hxx
@@ -52,13 +52,15 @@ namespace utl {
struct ScQueryEntry
{
+private:
+ String* pStr;
+public:
bool bDoQuery;
bool bQueryByString;
bool bQueryByDate;
SCCOLROW nField;
ScQueryOp eOp;
ScQueryConnect eConnect;
- String* pStr;
double nVal;
mutable utl::SearchParam* pSearchParam; // if RegExp, not saved
mutable utl::TextSearch* pSearchText; // if RegExp, not saved