diff options
author | Jan <sentrycraft123@gmail.com> | 2024-06-22 11:59:46 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-22 11:59:46 +0200 |
commit | 3c876448164e8d611d8b3c14cff481712b5391a8 (patch) | |
tree | 4561afd04709e7ce61ed1768e10326e3d9e1195b | |
parent | 874afd95ff1bf88b602241486e39b3ecfaadd758 (diff) | |
download | NorthstarLauncher-3c876448164e8d611d8b3c14cff481712b5391a8.tar.gz NorthstarLauncher-3c876448164e8d611d8b3c14cff481712b5391a8.zip |
Add overrides to `custom_sink_it_` methods (#708)
the compiler knows we want to override here, since the original `custom_sink_it_` is virtual but we should be explicit to prevent any mistakes.
-rw-r--r-- | primedev/dedicated/dedicatedlogtoclient.h | 2 | ||||
-rw-r--r-- | primedev/logging/sourceconsole.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/primedev/dedicated/dedicatedlogtoclient.h b/primedev/dedicated/dedicatedlogtoclient.h index 82f4c56b..5678982e 100644 --- a/primedev/dedicated/dedicatedlogtoclient.h +++ b/primedev/dedicated/dedicatedlogtoclient.h @@ -5,7 +5,7 @@ class DedicatedServerLogToClientSink : public CustomSink { protected: - void custom_sink_it_(const custom_log_msg& msg); + void custom_sink_it_(const custom_log_msg& msg) override; void sink_it_(const spdlog::details::log_msg& msg) override; void flush_() override; }; diff --git a/primedev/logging/sourceconsole.h b/primedev/logging/sourceconsole.h index 44d73843..215dae1a 100644 --- a/primedev/logging/sourceconsole.h +++ b/primedev/logging/sourceconsole.h @@ -77,7 +77,7 @@ private: {spdlog::level::off, NS::Colors::OFF.ToSourceColor()}}; protected: - void custom_sink_it_(const custom_log_msg& msg); + void custom_sink_it_(const custom_log_msg& msg) override; void sink_it_(const spdlog::details::log_msg& msg) override; void flush_() override; }; |