@@ -258,9 +258,9 @@ InternalValue StringConverter::Filter(const InternalValue& baseVal, RenderContex
258
258
break ;
259
259
case ReplaceMode:
260
260
result = ApplyConverter (baseVal, [this , &context](auto str) {
261
- auto oldStr = GetAsSameString (str, GetArgumentValue (" old" , context));
262
- auto newStr = GetAsSameString (str, GetArgumentValue (" new" , context));
263
- auto count = ConvertToInt (GetArgumentValue (" count" , context));
261
+ auto oldStr = GetAsSameString (str, this -> GetArgumentValue (" old" , context));
262
+ auto newStr = GetAsSameString (str, this -> GetArgumentValue (" new" , context));
263
+ auto count = ConvertToInt (this -> GetArgumentValue (" count" , context));
264
264
if (count == 0 )
265
265
ba::replace_all (str, oldStr, newStr);
266
266
else
@@ -273,10 +273,10 @@ InternalValue StringConverter::Filter(const InternalValue& baseVal, RenderContex
273
273
break ;
274
274
case TruncateMode:
275
275
result = ApplyConverter (baseVal, [this , &context, &isAlNum](auto str) {
276
- auto length = ConvertToInt (GetArgumentValue (" length" , context));
277
- auto killWords = ConvertToBool (GetArgumentValue (" killwords" , context));
278
- auto end = GetAsSameString (str, GetArgumentValue (" end" , context));
279
- auto leeway = ConvertToInt (GetArgumentValue (" leeway" , context), 5 );
276
+ auto length = ConvertToInt (this -> GetArgumentValue (" length" , context));
277
+ auto killWords = ConvertToBool (this -> GetArgumentValue (" killwords" , context));
278
+ auto end = GetAsSameString (str, this -> GetArgumentValue (" end" , context));
279
+ auto leeway = ConvertToInt (this -> GetArgumentValue (" leeway" , context), 5 );
280
280
if (str.size () <= length)
281
281
return str;
282
282
0 commit comments