Merge #9538: [util] Remove redundant call to get() on smart pointer (thread_specific_ptr)
53a2ba3
[util] Remove redundant call to get() on smart pointer (thread_specific_ptr) (practicalswift)
Tree-SHA512: ec8ace4218ae0657d1aaf8ba7682b0cdd140fe0844173058d3cbf4575dee8d9ad5f241e5bacf1e9e4ad3f7dd282f56a8cb0f306de2093f2c0f6333daedd58261
This commit is contained in:
commit
e3e7db829e
1 changed files with 2 additions and 2 deletions
|
@ -248,7 +248,7 @@ bool LogAcceptCategory(const char* category)
|
||||||
} else
|
} else
|
||||||
ptrCategory.reset(new std::set<std::string>());
|
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 not debugging everything and not debugging specific category, LogPrint does nothing.
|
||||||
if (setCategories.count(std::string("")) == 0 &&
|
if (setCategories.count(std::string("")) == 0 &&
|
||||||
|
@ -839,4 +839,4 @@ std::string CopyrightHolders(const std::string& strPrefix)
|
||||||
strCopyrightHolders += "\n" + strPrefix + "The Bitcoin Core developers";
|
strCopyrightHolders += "\n" + strPrefix + "The Bitcoin Core developers";
|
||||||
}
|
}
|
||||||
return strCopyrightHolders;
|
return strCopyrightHolders;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue