mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-14 03:09:08 +00:00
Changed: Replace string empty assign by clear()
--HG-- branch : develop
This commit is contained in:
parent
4b1959a560
commit
efe00fa8bf
1 changed files with 2 additions and 2 deletions
|
@ -55,7 +55,7 @@ void CToolPick::setIgnoreInstances(const std::string & ignoreInstances)
|
||||||
if (e == std::string::npos || e == 0)
|
if (e == std::string::npos || e == 0)
|
||||||
{
|
{
|
||||||
tmp = allKind;
|
tmp = allKind;
|
||||||
allKind="";
|
allKind.clear();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -66,7 +66,7 @@ void CToolPick::setIgnoreInstances(const std::string & ignoreInstances)
|
||||||
while(!tmp.empty() && tmp[0]==' ')
|
while(!tmp.empty() && tmp[0]==' ')
|
||||||
{
|
{
|
||||||
if(tmp.size()==1)
|
if(tmp.size()==1)
|
||||||
tmp="";
|
tmp.clear();
|
||||||
else
|
else
|
||||||
tmp = tmp.substr(1,tmp.size());
|
tmp = tmp.substr(1,tmp.size());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue