Skip to content

Commit

Permalink
fix: Minor stylistic changes
Browse files Browse the repository at this point in the history
  • Loading branch information
2b-t committed Feb 7, 2024
1 parent 2cfd059 commit cef5b6f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/can_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
* The substring that should be removed
*/
void removeSubstr(std::string& str, std::string const& substr) noexcept {
std::string::size_type n {substr.length()};
std::string::size_type const n {substr.length()};
for (std::string::size_type i = str.find(substr); i != std::string::npos; i = str.find(substr)) {
str.erase(i, n);
}
Expand Down Expand Up @@ -86,8 +86,8 @@ int main(int argc, char** argv) {
}
} else {
std::cerr << "Unknown combination of options!" << std::endl;
return EXIT_FAILURE;
}


return EXIT_SUCCESS;
}

0 comments on commit cef5b6f

Please sign in to comment.