Skip to content

Commit

Permalink
Iemgr: Explicitly specify namespace for std::move to get rid of warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
sedmicha authored and Lukas955 committed Aug 5, 2024
1 parent 8c967b2 commit 1ae05e6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/iemgr/iemgr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,7 @@ fds_iemgr_elem_add(fds_iemgr_t *mgr, const struct fds_iemgr_elem *elem, uint32_t
}

auto res = unique_elem(element_copy(scope, elem), &::element_remove);
if (!element_push(mgr, scope, move(res), BIFLOW_ID_INVALID)) {
if (!element_push(mgr, scope, std::move(res), BIFLOW_ID_INVALID)) {
return FDS_ERR_FORMAT;
}
} catch (...) {
Expand Down
6 changes: 3 additions & 3 deletions src/iemgr/iemgr_element.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -312,9 +312,9 @@ element_push(fds_iemgr_t* mgr, fds_iemgr_scope_inter* scope, unique_elem elem, i

auto res = find_second(scope->ids, elem->id);
if (res != nullptr) {
return element_overwrite(mgr, scope, res, move(elem), biflow_id);
return element_overwrite(mgr, scope, res, std::move(elem), biflow_id);
}
return element_write(mgr, scope, move(elem), biflow_id);
return element_write(mgr, scope, std::move(elem), biflow_id);
}

bool
Expand Down Expand Up @@ -382,7 +382,7 @@ element_read(fds_iemgr_t* mgr, fds_xml_ctx_t* ctx, fds_iemgr_scope_inter* scope)
}

elem->scope = &scope->head;
return element_push(mgr, scope, move(elem), biflow_id);
return element_push(mgr, scope, std::move(elem), biflow_id);
}

bool
Expand Down
4 changes: 2 additions & 2 deletions src/iemgr/iemgr_scope.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ scope_push(fds_iemgr_t* mgr, unique_scope scope, bool biflow_read)
return scope_overwrite(mgr, res);
}

return scope_write(mgr, move(scope), biflow_read);
return scope_write(mgr, std::move(scope), biflow_read);
}

bool
Expand Down Expand Up @@ -343,7 +343,7 @@ scope_read(fds_iemgr_t* mgr, fds_xml_ctx_t* ctx)
break;
}
}
return scope_push(mgr, move(scope), biflow_read);
return scope_push(mgr, std::move(scope), biflow_read);
}

const fds_xml_cont *
Expand Down

0 comments on commit 1ae05e6

Please sign in to comment.