From 0e884381119496d0931903e83de77046315ec440 Mon Sep 17 00:00:00 2001 From: Karl Wiberg Date: Tue, 22 Sep 2020 09:34:45 +0200 Subject: [PATCH] RTC_LOG: Mark a trivial function with `constexpr` It makes very little difference, but will allow a slightly nontrivial sequel CL [https://webrtc-review.googlesource.com/c/src/+/184933] to cause no binary changes at all. Bug: webrtc:11968 Change-Id: I681ea2de757b46fe2f08df6e99cf974e577542c9 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/185000 Reviewed-by: Mirko Bonadei Commit-Queue: Karl Wiberg Cr-Commit-Position: refs/heads/master@{#32155} --- rtc_base/logging.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rtc_base/logging.h b/rtc_base/logging.h index be75953c98..9bfb187fb6 100644 --- a/rtc_base/logging.h +++ b/rtc_base/logging.h @@ -525,7 +525,7 @@ class LogMessage { inline static int GetLogToStream(LogSink* stream = nullptr) { return 0; } inline static int GetMinLogSeverity() { return 0; } inline static void ConfigureLogging(const char* params) {} - inline static bool IsNoop(LoggingSeverity severity) { return true; } + static constexpr bool IsNoop(LoggingSeverity severity) { return true; } #endif // RTC_LOG_ENABLED() private: