Skip to content

Commit

Permalink
make log location parameter const (#451)
Browse files Browse the repository at this point in the history
  • Loading branch information
wjwwood authored Mar 16, 2018
1 parent 168d75c commit d8abea5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rclcpp/test/test_logging.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ rclcpp::Logger g_logger = rclcpp::get_logger("name");

struct LogEvent
{
rcutils_log_location_t * location;
const rcutils_log_location_t * location;
int level;
std::string name;
std::string message;
Expand All @@ -49,7 +49,7 @@ class TestLoggingMacros : public ::testing::Test
rcutils_logging_set_default_logger_level(RCUTILS_LOG_SEVERITY_DEBUG);

auto rcutils_logging_console_output_handler = [](
rcutils_log_location_t * location,
const rcutils_log_location_t * location,
int level, const char * name, const char * format, va_list * args) -> void
{
g_log_calls += 1;
Expand Down

0 comments on commit d8abea5

Please sign in to comment.