Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Carroll <[email protected]>
  • Loading branch information
mjcarroll committed May 27, 2022
1 parent 07ab79a commit 5f4df55
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
6 changes: 3 additions & 3 deletions include/gz/math/Helpers.hh
Original file line number Diff line number Diff line change
Expand Up @@ -660,9 +660,9 @@ namespace ignition
/// \return True if the regex was able to split the string otherwise False
inline bool isTimeString(const std::string &_timeString)
{
uint64_t days, hours, minutes, seconds, millis;
return splitTimeBasedOnTimeRegex(
_timeString, days, hours, minutes, seconds, millis);
// These will be thrown away, just for making the function call
uint64_t d, h, m, s, ms;
return splitTimeBasedOnTimeRegex(_timeString, d, h, m, s, ms);
}

/// \brief Convert a string to a std::chrono::steady_clock::duration
Expand Down
4 changes: 2 additions & 2 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ add_subdirectory(graph)

# Bindings subdirectories
if (${pybind11_FOUND})
# add_subdirectory(python_pybind11)
add_subdirectory(python_pybind11)
endif()
# add_subdirectory(ruby)
add_subdirectory(ruby)
2 changes: 1 addition & 1 deletion src/Helpers.cc
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ namespace ignition
// The following regex takes a time string in the general format of
// "dd hh:mm:ss.nnn" where n is milliseconds, if just one number is
// provided, it is assumed to be seconds.
static const ignition::utils::NeverDestroyed<std::regex> timeRegex {
static const ignition::utils::NeverDestroyed<std::regex> timeRegex {
"^([0-9]+ ){0,1}" // day:
// Any positive integer

Expand Down
1 change: 0 additions & 1 deletion src/graph/GraphAlgorithms_TEST.cc
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
*/

#include <gtest/gtest.h>
#include <string>

#include "gz/math/graph/Graph.hh"
#include "gz/math/graph/GraphAlgorithms.hh"
Expand Down

0 comments on commit 5f4df55

Please sign in to comment.