File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ QgsSearchString::QgsSearchString( const QgsSearchString& str )
42
42
43
43
QgsSearchString& QgsSearchString::operator =( const QgsSearchString & str )
44
44
{
45
- setEmpty ();
45
+ clear ();
46
46
47
47
if ( str.mTree )
48
48
mTree = new QgsSearchTreeNode ( *str.mTree );
@@ -65,7 +65,7 @@ bool QgsSearchString::setString( QString str )
65
65
// empty string
66
66
if ( str == " " )
67
67
{
68
- setEmpty ();
68
+ clear ();
69
69
return true ;
70
70
}
71
71
@@ -87,7 +87,7 @@ bool QgsSearchString::setTree( QgsSearchTreeNode* tree )
87
87
{
88
88
if ( tree == NULL )
89
89
{
90
- setEmpty ();
90
+ clear ();
91
91
}
92
92
else
93
93
{
@@ -103,7 +103,7 @@ bool QgsSearchString::isEmpty()
103
103
return ( mTree == NULL );
104
104
}
105
105
106
- void QgsSearchString::setEmpty ()
106
+ void QgsSearchString::clear ()
107
107
{
108
108
delete mTree ;
109
109
mTree = NULL ;
Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ class CORE_EXPORT QgsSearchString
66
66
bool isEmpty ();
67
67
68
68
// ! clear search string
69
- void setEmpty ();
69
+ void clear ();
70
70
71
71
private:
72
72
// ! search string and coresponding tree
You can’t perform that action at this time.
0 commit comments