Skip to content

Commit

Permalink
fix(vpkpp): remove const_cast in C wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
craftablescience committed Aug 20, 2024
1 parent dd6e44e commit e535a6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lang/c/src/vpkppc/PackFile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ SOURCEPP_API void vpkpp_run_for_all_entries(vpkpp_pack_file_handle_t handle, Ent
SOURCEPP_EARLY_RETURN(handle);
SOURCEPP_EARLY_RETURN(operation);

return const_cast<const PackFile*>(Convert::packFile(handle))->runForAllEntries([operation](const std::string& path, const Entry& entry) {
return Convert::packFile(handle)->runForAllEntries([operation](const std::string& path, const Entry& entry) {
return operation(path.c_str(), const_cast<Entry*>(&entry));
}, includeUnbaked);
}
Expand Down

0 comments on commit e535a6d

Please sign in to comment.