Skip to content

Commit e3e7db8

Browse files
committed
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
2 parents c71f0ca + 53a2ba3 commit e3e7db8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/util.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ bool LogAcceptCategory(const char* category)
248248
} else
249249
ptrCategory.reset(new std::set<std::string>());
250250
}
251-
const std::set<std::string>& setCategories = *ptrCategory.get();
251+
const std::set<std::string>& setCategories = *ptrCategory;
252252

253253
// if not debugging everything and not debugging specific category, LogPrint does nothing.
254254
if (setCategories.count(std::string("")) == 0 &&
@@ -839,4 +839,4 @@ std::string CopyrightHolders(const std::string& strPrefix)
839839
strCopyrightHolders += "\n" + strPrefix + "The Bitcoin Core developers";
840840
}
841841
return strCopyrightHolders;
842-
}
842+
}

0 commit comments

Comments
 (0)