Skip to content

Commit 14a6049

Browse files
committed
const qualify method and member ptr
1 parent e45bafc commit 14a6049

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/viam/sdk/log/logger.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ std::string global_resource_name() {
6767
return "Viam C++ SDK";
6868
}
6969

70-
bool Logger::Filter::operator()(const boost::log::attribute_value_set& attrs) {
70+
bool Logger::Filter::operator()(const boost::log::attribute_value_set& attrs) const {
7171
auto sev = attrs[attr_sev_type{}];
7272
if (!sev) {
7373
return false;

src/viam/sdk/log/logger.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@ std::string global_resource_name();
5858
class Logger {
5959
public:
6060
struct Filter {
61-
Logger* parent;
61+
const Logger* parent;
6262

63-
bool operator()(const boost::log::attribute_value_set&);
63+
bool operator()(const boost::log::attribute_value_set&) const;
6464
};
6565

6666
/// @brief Returns the unique logger instance.

0 commit comments

Comments
 (0)