Skip to content

Commit

Permalink
Few clangtidy fixes (#343)
Browse files Browse the repository at this point in the history
Signed-off-by: Shameek Ganguly <[email protected]>
  • Loading branch information
shameekganguly authored May 19, 2023
1 parent 8df3015 commit 7d5ef01
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Filesystem.cc
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ namespace gz
#endif // _WIN32

//////////////////////////////////////////////////
const std::string separator(const std::string &_p)
std::string separator(const std::string &_p)
{
return _p + preferred_separator;
}
Expand Down
2 changes: 1 addition & 1 deletion src/Generator.cc
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ bool Generator::Generate(const FileDescriptor *_file,

auto ns = getNamespaces(_file->package());

for (auto name : ns)
for (const auto name : ns)
printer.PrintRaw("namespace " + name + " {\n");

for (auto i = 0; i < _file->message_type_count(); ++i)
Expand Down
2 changes: 0 additions & 2 deletions src/Generator.hh
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ namespace google {
namespace protobuf {
namespace compiler {
namespace cpp {
class GeneratorContext;

/// \cond
/// \brief Google protobuf message generator for igntion::msgs
class Generator : public CodeGenerator
Expand Down

0 comments on commit 7d5ef01

Please sign in to comment.