File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 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 )
4242
4343QgsSearchString& QgsSearchString::operator =( const QgsSearchString & str )
4444{
45- setEmpty ();
45+ clear ();
4646
4747 if ( str.mTree )
4848 mTree = new QgsSearchTreeNode ( *str.mTree );
@@ -65,7 +65,7 @@ bool QgsSearchString::setString( QString str )
6565 // empty string
6666 if ( str == " " )
6767 {
68- setEmpty ();
68+ clear ();
6969 return true ;
7070 }
7171
@@ -87,7 +87,7 @@ bool QgsSearchString::setTree( QgsSearchTreeNode* tree )
8787{
8888 if ( tree == NULL )
8989 {
90- setEmpty ();
90+ clear ();
9191 }
9292 else
9393 {
@@ -103,7 +103,7 @@ bool QgsSearchString::isEmpty()
103103 return ( mTree == NULL );
104104}
105105
106- void QgsSearchString::setEmpty ()
106+ void QgsSearchString::clear ()
107107{
108108 delete mTree ;
109109 mTree = NULL ;
Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ class CORE_EXPORT QgsSearchString
6666 bool isEmpty ();
6767
6868 // ! clear search string
69- void setEmpty ();
69+ void clear ();
7070
7171 private:
7272 // ! search string and coresponding tree
You can’t perform that action at this time.
0 commit comments