diff options
| author | 2014-11-01 18:21:30 +0100 | |
|---|---|---|
| committer | 2014-11-01 18:21:30 +0100 | |
| commit | 48f8f79317a04891e2becd859363add6eb2d6444 (patch) | |
| tree | f92d080a4b552df405470662a31fc5e4a923882d /src/logger.cpp | |
| parent | Add stdalgo::erase() and use it to simplify code (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; } |
