Skip to content

Commit

Permalink
clang-tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
TrentHouliston committed Sep 4, 2024
1 parent c6aa027 commit cdd45c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/util/TypeMap.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ namespace util {
* @param d A pointer to the data to be stored (the map takes ownership)
*/
static void set(std::shared_ptr<Value> d) {
std::lock_guard<std::mutex> lock(data_mutex);
const std::lock_guard<std::mutex> lock(data_mutex);
data = d;
}

Expand All @@ -91,7 +91,7 @@ namespace util {
* @return A shared_ptr to the data that was previously stored
*/
static std::shared_ptr<Value> get() {
std::lock_guard<std::mutex> lock(data_mutex);
const std::lock_guard<std::mutex> lock(data_mutex);
return data;
}
};
Expand Down

0 comments on commit cdd45c4

Please sign in to comment.