Changed: Replace string empty assign by clear()

This commit is contained in:
kervala 2016-05-25 23:19:26 +02:00
parent d94941a20b
commit 7b901a8888

View file

@ -55,7 +55,7 @@ void CToolPick::setIgnoreInstances(const std::string & ignoreInstances)
if (e == std::string::npos || e == 0)
{
tmp = allKind;
allKind="";
allKind.clear();
}
else
{
@ -66,7 +66,7 @@ void CToolPick::setIgnoreInstances(const std::string & ignoreInstances)
while(!tmp.empty() && tmp[0]==' ')
{
if(tmp.size()==1)
tmp="";
tmp.clear();
else
tmp = tmp.substr(1,tmp.size());
}