Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make log location parameter const #451

Merged
merged 1 commit into from
Mar 16, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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