10000 Fix gcc 5/6 build · jinja2cpp/Jinja2Cpp@142dedf · GitHub
[go: up one dir, main page]

Skip to content

Commit 142dedf

Browse files
committed
Fix gcc 5/6 build
1 parent 4143f01 commit 142dedf

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/string_converter_filter.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -258,9 +258,9 @@ InternalValue StringConverter::Filter(const InternalValue& baseVal, RenderContex
258258
break;
259259
case ReplaceMode:
260260
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));
264264
if (count == 0)
265265
ba::replace_all(str, oldStr, newStr);
266266
else
@@ -273,10 +273,10 @@ InternalValue StringConverter::Filter(const InternalValue& baseVal, RenderContex
273273
break;
274274
case TruncateMode:
275275
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);
280280
if (str.size() <= length)
281281
return str;
282282

0 commit comments

Comments
 (0)
0