Added back replacement counter incrementation.
git-svn-id: http://yate.null.ro/svn/yate/trunk@2173 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
parent
01ab8214bb
commit
9edee27ba6
|
@ -248,6 +248,7 @@ int NamedList::replaceParams(String& str, bool sqlEsc, char extraEsc) const
|
|||
str = str.substr(0,p1) + tmp + str.substr(p2+1);
|
||||
// advance search offset past the string we just replaced
|
||||
p1 += tmp.length();
|
||||
cnt++;
|
||||
}
|
||||
else
|
||||
return -1;
|
||||
|
|
Loading…
Reference in New Issue