diff options
author | Treeston <treeston.mmoc@gmail.com> | 2020-08-28 00:11:16 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-28 00:11:16 +0200 |
commit | 534a2388b7c662c8796aabb1ec8cb424879799b6 (patch) | |
tree | df01a59b06bbb376dfeb95f2d538ab43b082e20d /src/common/Logging/AppenderFile.h | |
parent | 7478c2c65aea853a2086c9c7ecc56c14ad6ee338 (diff) |
Core/Common: Tokenizer -> Trinity::Tokenize (PR: #25327)
Diffstat (limited to 'src/common/Logging/AppenderFile.h')
-rw-r--r-- | src/common/Logging/AppenderFile.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/common/Logging/AppenderFile.h b/src/common/Logging/AppenderFile.h index a320e90eb2b..c360e81a2ae 100644 --- a/src/common/Logging/AppenderFile.h +++ b/src/common/Logging/AppenderFile.h @@ -24,12 +24,12 @@ class TC_COMMON_API AppenderFile : public Appender { public: - typedef std::integral_constant<AppenderType, APPENDER_FILE>::type TypeIndex; + static constexpr AppenderType type = APPENDER_FILE; - AppenderFile(uint8 id, std::string const& name, LogLevel level, AppenderFlags flags, std::vector<char const*> extraArgs); + AppenderFile(uint8 id, std::string const& name, LogLevel level, AppenderFlags flags, std::vector<std::string_view> const& args); ~AppenderFile(); FILE* OpenFile(std::string const& name, std::string const& mode, bool backup); - AppenderType getType() const override { return TypeIndex::value; } + AppenderType getType() const override { return type; } private: void CloseFile(); |