aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorpracticalswift <practicalswift@users.noreply.github.com>2017-01-12 22:22:50 +0100
committerpracticalswift <practicalswift@users.noreply.github.com>2017-03-09 10:22:35 +0100
commit53a2ba351af41c8ec69cda8c13cc39b07d4e79ee (patch)
tree72bc5cfc1af53a1d422af892c92c35f33b6f3e01 /src
parentb403ec5c0f2fa0464a9d40f9d5c25beb0bd3c5df (diff)
[util] Remove redundant call to get() on smart pointer (thread_specific_ptr)
Diffstat (limited to 'src')
-rw-r--r--src/util.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util.cpp b/src/util.cpp
index 30c530cb41..486df772fb 100644
--- a/src/util.cpp
+++ b/src/util.cpp
@@ -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)
strCopyrightHolders += "\n" + strPrefix + "The Bitcoin Core developers";
}
return strCopyrightHolders;
-} \ No newline at end of file
+}