diff --git a/src/log.h b/src/log.h index 8aa6b07..fd150e4 100644 --- a/src/log.h +++ b/src/log.h @@ -451,13 +451,12 @@ struct EscapedString FORCEINLINE operator const std::string&() const { return m_data; } -private: std::string m_data; }; template<> struct log::Stream::Entry { - static FORCEINLINE void put(const EscapedString& value, Stream* wrapper) { *wrapper << value; } + static FORCEINLINE void put(const EscapedString& value, Stream* wrapper) { *wrapper << value.m_data; } }; struct MaskNonASCII @@ -473,13 +472,12 @@ struct MaskNonASCII FORCEINLINE operator const std::string&() const { return m_data; } -private: std::string m_data; }; template<> struct log::Stream::Entry { - static FORCEINLINE void put(const MaskNonASCII& value, Stream* wrapper) { *wrapper << value; } + static FORCEINLINE void put(const MaskNonASCII& value, Stream* wrapper) { *wrapper << value.m_data; } }; template