summaryrefslogtreecommitdiff
path: root/src/logger.cpp
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2014-11-01 18:21:30 +0100
committerAttila Molnar <attilamolnar@hush.com>2014-11-01 18:21:30 +0100
commit48f8f79317a04891e2becd859363add6eb2d6444 (patch)
treef92d080a4b552df405470662a31fc5e4a923882d /src/logger.cpp
parentfbc73e20784b055485f676096e758d6aeed62e0c (diff)
Add stdalgo::isin() and use it to simplify code
Diffstat (limited to 'src/logger.cpp')
-rw-r--r--src/logger.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/logger.cpp b/src/logger.cpp
index 61f1eb179..8bd5f7f88 100644
--- a/src/logger.cpp
+++ b/src/logger.cpp
@@ -288,7 +288,7 @@ void LogManager::Log(const std::string &type, LogLevel loglevel, const std::stri
for (std::map<LogStream *, std::vector<std::string> >::iterator gi = GlobalLogStreams.begin(); gi != GlobalLogStreams.end(); ++gi)
{
- if (std::find(gi->second.begin(), gi->second.end(), type) != gi->second.end())
+ if (stdalgo::isin(gi->second, type))
{
continue;
}