From 3189a3cbee8eb9d7ded7605776a75f35e5e2f122 Mon Sep 17 00:00:00 2001 From: Peter Bell Date: Fri, 15 May 2020 03:35:43 +0100 Subject: Update logging code to reduce unnecessary string copying: * Write into a single fmt::memory_buffer * Use string_view instead of AString for listener callbacks * Also collapsed vFLOG and vLOG functions into one per formatting type --- src/CompositeChat.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/CompositeChat.h') diff --git a/src/CompositeChat.h b/src/CompositeChat.h index ced0ab101..675837548 100644 --- a/src/CompositeChat.h +++ b/src/CompositeChat.h @@ -7,7 +7,6 @@ #include "Defines.h" #include "json/json.h" -#include "Logger.h" @@ -231,7 +230,7 @@ public: /** Converts the MessageType to a LogLevel value. Used by the logging bindings when logging a cCompositeChat object. */ - static cLogger::eLogLevel MessageTypeToLogLevel(eMessageType a_MessageType); + static eLogLevel MessageTypeToLogLevel(eMessageType a_MessageType); /** Adds the chat part's style (represented by the part's stylestring) into the Json object. */ void AddChatPartStyle(Json::Value & a_Value, const AString & a_PartStyle) const; -- cgit v1.2.3