Skip to content

Commit

Permalink
fix: Fixing clang-tidy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
LinuxDevon committed Mar 18, 2024
1 parent ef80b7c commit 673c91a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/libdbc/dbc.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class DbcParser : public Parser {
void parse_dbc_nodes(std::istream& file_stream);
void parse_dbc_messages(const std::vector<std::string>& lines);

std::string get_extension(const std::string& file_name);
static std::string get_extension(const std::string& file_name);
};

}
Expand Down
3 changes: 2 additions & 1 deletion src/dbc.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include <cstdint>
#include <cstdio>
#include <fstream>
#include <istream>
#include <libdbc/dbc.hpp>
Expand Down Expand Up @@ -93,7 +94,7 @@ void DbcParser::parse_file(const std::string& file) {
}

std::string DbcParser::get_extension(const std::string& file_name) {
size_t dot = file_name.find_last_of(".");
std::size_t dot = file_name.find_last_of(".");
if (dot != std::string::npos) {
return file_name.substr(dot, file_name.size() - dot);
}
Expand Down

0 comments on commit 673c91a

Please sign in to comment.