Skip to content

Commit 9297062

Browse files
committed
silence const warnings
1 parent 04c92ce commit 9297062

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/viam/sdk/log/logging.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,8 @@ LogManager& LogManager::get() {
9191
return result;
9292
}
9393

94-
void LogManager::set_global_resource_name(std::string name) {
95-
sdk_logger_.channel(std::move(name));
94+
void LogManager::set_global_resource_name(const std::string& name) {
95+
sdk_logger_.channel(name);
9696
VIAM_SDK_LOG(debug) << "Overrode global resource name";
9797
}
9898

src/viam/sdk/log/logging.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ class LogManager {
7070
static LogManager& get();
7171

7272
/// @brief Override the channel name of general log messages not originating from resources.
73-
void set_global_resource_name(std::string);
73+
void set_global_resource_name(const std::string& name);
7474

7575
/// @brief Set the global logger severity.
7676
void set_global_log_level(log_level);

0 commit comments

Comments
 (0)