Browse Source

[util] Remove redundant call to get() on smart pointer (thread_specific_ptr)

0.15
practicalswift 8 years ago
parent
commit
53a2ba351a
  1. 4
      src/util.cpp

4
src/util.cpp

@ -248,7 +248,7 @@ bool LogAcceptCategory(const char* category) @@ -248,7 +248,7 @@ bool LogAcceptCategory(const char* category)
} else
ptrCategory.reset(new std::set<std::string>());
}
const std::set<std::string>& setCategories = *ptrCategory.get();
const std::set<std::string>& setCategories = *ptrCategory;
// if not debugging everything and not debugging specific category, LogPrint does nothing.
if (setCategories.count(std::string("")) == 0 &&
@ -839,4 +839,4 @@ std::string CopyrightHolders(const std::string& strPrefix) @@ -839,4 +839,4 @@ std::string CopyrightHolders(const std::string& strPrefix)
strCopyrightHolders += "\n" + strPrefix + "The Bitcoin Core developers";
}
return strCopyrightHolders;
}
}

Loading…
Cancel
Save