diff options
author | bunnei <bunneidev@gmail.com> | 2018-07-20 17:17:04 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-20 17:17:04 -0700 |
commit | 8afc21f175548287c1f678e28c999567299eec4e (patch) | |
tree | 4e7425138bc85a064db386194ffce1caa8e6a384 /src/common/logging/backend.h | |
parent | d4104c72aa13851b770fffe988d1695fd1d8230a (diff) | |
parent | f63ccbd93640bfd1c8bb8aa68f1ed1b0e0a91e58 (diff) |
Merge pull request #743 from lioncash/view
logging: Use std::string_view where applicable
Diffstat (limited to 'src/common/logging/backend.h')
-rw-r--r-- | src/common/logging/backend.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/common/logging/backend.h b/src/common/logging/backend.h index 57cdf6b2d..b3f4b9cef 100644 --- a/src/common/logging/backend.h +++ b/src/common/logging/backend.h @@ -4,10 +4,9 @@ #pragma once #include <chrono> -#include <cstdarg> #include <memory> #include <string> -#include <utility> +#include <string_view> #include "common/file_util.h" #include "common/logging/filter.h" #include "common/logging/log.h" @@ -106,9 +105,9 @@ private: void AddBackend(std::unique_ptr<Backend> backend); -void RemoveBackend(const std::string& backend_name); +void RemoveBackend(std::string_view backend_name); -Backend* GetBackend(const std::string& backend_name); +Backend* GetBackend(std::string_view backend_name); /** * Returns the name of the passed log class as a C-string. Subclasses are separated by periods |