From f3a87eacf0f15f579ed59a4c07a49b29e7f514fc Mon Sep 17 00:00:00 2001 From: kervala Date: Wed, 25 May 2016 23:19:26 +0200 Subject: [PATCH] Changed: Replace string empty assign by clear() --- code/ryzom/client/src/r2/tool_pick.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/ryzom/client/src/r2/tool_pick.cpp b/code/ryzom/client/src/r2/tool_pick.cpp index cca373162..a34d3ccdf 100644 --- a/code/ryzom/client/src/r2/tool_pick.cpp +++ b/code/ryzom/client/src/r2/tool_pick.cpp @@ -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()); }