From 53a2ba351af41c8ec69cda8c13cc39b07d4e79ee Mon Sep 17 00:00:00 2001 From: practicalswift Date: Thu, 12 Jan 2017 22:22:50 +0100 Subject: [PATCH] [util] Remove redundant call to get() on smart pointer (thread_specific_ptr) --- src/util.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/util.cpp b/src/util.cpp index 30c530cb4..486df772f 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -248,7 +248,7 @@ bool LogAcceptCategory(const char* category) } else ptrCategory.reset(new std::set()); } - const std::set& setCategories = *ptrCategory.get(); + const std::set& 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) strCopyrightHolders += "\n" + strPrefix + "The Bitcoin Core developers"; } return strCopyrightHolders; -} \ No newline at end of file +} -- 2.11.4.GIT