diff options
author | Attila Molnar <attilamolnar@hush.com> | 2014-11-01 18:21:30 +0100 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2014-11-01 18:21:30 +0100 |
commit | 48f8f79317a04891e2becd859363add6eb2d6444 (patch) | |
tree | f92d080a4b552df405470662a31fc5e4a923882d /src/logger.cpp | |
parent | fbc73e20784b055485f676096e758d6aeed62e0c (diff) |
Add stdalgo::isin() and use it to simplify code
Diffstat (limited to 'src/logger.cpp')
-rw-r--r-- | src/logger.cpp | 2 |
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; } |