Skip to content

Commit

Permalink
Merge bitcoin#9538: [util] Remove redundant call to get() on smart po…
Browse files Browse the repository at this point in the history
…inter (thread_specific_ptr)

53a2ba3 [util] Remove redundant call to get() on smart pointer (thread_specific_ptr) (practicalswift)

Tree-SHA512: ec8ace4218ae0657d1aaf8ba7682b0cdd140fe0844173058d3cbf4575dee8d9ad5f241e5bacf1e9e4ad3f7dd282f56a8cb0f306de2093f2c0f6333daedd58261
  • Loading branch information
laanwj authored and PastaPastaPasta committed Feb 26, 2019
1 parent e5c4a67 commit 49b743e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ bool LogAcceptCategory(const char* category)
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 &&
Expand Down

0 comments on commit 49b743e

Please sign in to comment.