Skip to content

Commit d16c6e9

Browse files
committed
Clean up lambda captures in xml_input_format.hpp.
1 parent ce86538 commit d16c6e9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/osmium/io/detail/xml_input_format.hpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ namespace osmium {
417417
}
418418

419419
NodeRef nr;
420-
check_attributes(attrs, [this, &nr](const XML_Char* name, const XML_Char* value) {
420+
check_attributes(attrs, [&nr](const XML_Char* name, const XML_Char* value) {
421421
if (!std::strcmp(name, "ref")) {
422422
nr.set_ref(osmium::string_to_object_id(value));
423423
} else if (!std::strcmp(name, "lon")) {
@@ -446,7 +446,7 @@ namespace osmium {
446446
object_id_type ref = 0;
447447
bool ref_is_set = false;
448448
const char* role = "";
449-
check_attributes(attrs, [&](const XML_Char* name, const XML_Char* value) {
449+
check_attributes(attrs, [&type, &ref, &ref_is_set, &role](const XML_Char* name, const XML_Char* value) {
450450
if (!std::strcmp(name, "type")) {
451451
type = char_to_item_type(value[0]);
452452
} else if (!std::strcmp(name, "ref")) {

0 commit comments

Comments
 (0)