Skip to content
Snippets Groups Projects
Commit a8ba25c1 authored by Rye Mutt's avatar Rye Mutt :bread:
Browse files

Small opt to LL_*_ONCE logging functions

parent 1d981094
No related branches found
No related tags found
No related merge requests found
......@@ -41,6 +41,7 @@
# include <unistd.h>
#endif // !LL_WINDOWS
#include <vector>
#include <unordered_map>
#include "string.h"
#include "llapp.h"
......@@ -486,7 +487,7 @@ namespace LLError
LevelMap mClassLevelMap;
LevelMap mFileLevelMap;
LevelMap mTagLevelMap;
std::map<std::string, unsigned int> mUniqueLogMessages;
std::unordered_map<std::string, unsigned int> mUniqueLogMessages;
LLError::FatalFunction mCrashFunction;
LLError::TimeFunction mTimeFunction;
......@@ -1348,7 +1349,7 @@ namespace LLError
{
std::ostringstream message_stream;
std::map<std::string, unsigned int>::iterator messageIter = s->mUniqueLogMessages.find(message);
auto messageIter = s->mUniqueLogMessages.find(message);
if (messageIter != s->mUniqueLogMessages.end())
{
messageIter->second++;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment