diff options
| author | 2023-01-10 20:57:56 +0000 | |
|---|---|---|
| committer | 2023-01-10 21:27:18 +0000 | |
| commit | 1b2916c8451506adccf3ab0a56bbf836d9f3cb36 (patch) | |
| tree | 8675a6bf6fdf97b0f7dba5449fe59f1f669986a2 /src/logging.cpp | |
| parent | Fix calling the base Set/Unset implementation in ListExtItem. (diff) | |
Avoid copying shared_ptr<ConfigTag> when not necessary.
Diffstat (limited to 'src/logging.cpp')
| -rw-r--r-- | src/logging.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/logging.cpp b/src/logging.cpp index 60c5d420a..e89157309 100644 --- a/src/logging.cpp +++ b/src/logging.cpp @@ -111,7 +111,7 @@ Log::FileEngine::FileEngine(Module* Creator) { } -Log::MethodPtr Log::FileEngine::Create(std::shared_ptr<ConfigTag> tag) +Log::MethodPtr Log::FileEngine::Create(const std::shared_ptr<ConfigTag>& tag) { const std::string target = tag->getString("target"); if (target.empty()) @@ -135,7 +135,7 @@ Log::StreamEngine::StreamEngine(Module* Creator, const std::string& Name, FILE* { } -Log::MethodPtr Log::StreamEngine::Create(std::shared_ptr<ConfigTag> tag) +Log::MethodPtr Log::StreamEngine::Create(const std::shared_ptr<ConfigTag>& tag) { return std::make_shared<FileMethod>(name, file, 1, false); } |
