Skip to content

Commit 3649a3f

Browse files
author
timlinux
committed
API updates: use clear() instead of setString() on qgssearchstring
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@9541 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent bb42f46 commit 3649a3f

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/core/qgssearchstring.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ QgsSearchString::QgsSearchString( const QgsSearchString& str )
4242

4343
QgsSearchString& 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;

src/core/qgssearchstring.h

+1-1
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)