Skip to content
Snippets Groups Projects
Commit d3e48661 authored by Felix Weiglhofer's avatar Felix Weiglhofer
Browse files

Fix shadowed variable warning.

parent 85cfccf8
No related branches found
No related tags found
No related merge requests found
......@@ -12,11 +12,11 @@ logger &logger::instance() {
}
void logger::initialize(std::function<void(const char *)> write_out) {
this->write_out = std::move(write_out);
this->m_write_out = std::move(write_out);
}
bool logger::active() const {
return write_out != nullptr;
return m_write_out != nullptr;
}
void logger::write(const char *format, ...) {
......@@ -35,5 +35,5 @@ void logger::write(const char *format, ...) {
std::vsnprintf(formatted.get(), buf_size, format, args);
va_end(args);
write_out(formatted.get());
m_write_out(formatted.get());
}
......@@ -16,7 +16,7 @@ public:
void write(const char *, ...) __attribute__ ((format (__printf__, 2, 3)));
private:
std::function<void(const char *)> write_out;
std::function<void(const char *)> m_write_out;
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment