Skip to content

Commit 30727f9

Browse files
fcharlieChase Geigle
authored andcommitted
Remove unused lambda captures (#55)
This silences warnings from Clang 5.0's `-Wunused-lambda-capture` warning.
1 parent 789b388 commit 30727f9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

include/cpptoml.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2425,7 +2425,7 @@ class parser
24252425
std::string::iterator find_end_of_number(std::string::iterator it,
24262426
std::string::iterator end)
24272427
{
2428-
return std::find_if(it, end, [this](char c) {
2428+
return std::find_if(it, end, [](char c) {
24292429
return !is_number(c) && c != '_' && c != '.' && c != 'e' && c != 'E'
24302430
&& c != '-' && c != '+';
24312431
});
@@ -2434,7 +2434,7 @@ class parser
24342434
std::string::iterator find_end_of_date(std::string::iterator it,
24352435
std::string::iterator end)
24362436
{
2437-
return std::find_if(it, end, [this](char c) {
2437+
return std::find_if(it, end, [](char c) {
24382438
return !is_number(c) && c != 'T' && c != 'Z' && c != ':' && c != '-'
24392439
&& c != '+' && c != '.';
24402440
});
@@ -2443,7 +2443,7 @@ class parser
24432443
std::string::iterator find_end_of_time(std::string::iterator it,
24442444
std::string::iterator end)
24452445
{
2446-
return std::find_if(it, end, [this](char c) {
2446+
return std::find_if(it, end, [](char c) {
24472447
return !is_number(c) && c != ':' && c != '.';
24482448
});
24492449
}

0 commit comments

Comments
 (0)