diff options
| author | practicalswift <[email protected]> | 2017-01-12 22:22:50 +0100 |
|---|---|---|
| committer | practicalswift <[email protected]> | 2017-03-09 10:22:35 +0100 |
| commit | 53a2ba351af41c8ec69cda8c13cc39b07d4e79ee (patch) | |
| tree | 72bc5cfc1af53a1d422af892c92c35f33b6f3e01 /src/util.cpp | |
| parent | Merge #9916: Fix msvc compiler error C4146 (minus operator applied to unsigne... (diff) | |
| download | discoin-53a2ba351af41c8ec69cda8c13cc39b07d4e79ee.tar.xz discoin-53a2ba351af41c8ec69cda8c13cc39b07d4e79ee.zip | |
[util] Remove redundant call to get() on smart pointer (thread_specific_ptr)
Diffstat (limited to 'src/util.cpp')
| -rw-r--r-- | src/util.cpp | 4 |
1 files 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<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 +} |