diff options
| author | 2020-08-13 15:13:21 -0400 | |
|---|---|---|
| committer | 2020-08-13 15:13:21 -0400 | |
| commit | ff0b14ee624c056d41cb020562f57af07c710a8b (patch) | |
| tree | 6642ba786c7158933e3d1e2fb41a1aa1a6e30a63 /src/common | |
| parent | Merge pull request #4497 from lioncash/freezer-alg (diff) | |
| parent | General: Tidy up clang-format warnings part 2 (diff) | |
| download | yuzu-ff0b14ee624c056d41cb020562f57af07c710a8b.tar.gz yuzu-ff0b14ee624c056d41cb020562f57af07c710a8b.tar.xz yuzu-ff0b14ee624c056d41cb020562f57af07c710a8b.zip | |
Merge pull request #4511 from lioncash/build2
General: Tidy up clang-format warnings part 2
Diffstat (limited to '')
| -rw-r--r-- | src/common/bit_field.h | 2 | ||||
| -rw-r--r-- | src/common/detached_tasks.cpp | 3 | ||||
| -rw-r--r-- | src/common/math_util.h | 2 |
3 files changed, 3 insertions, 4 deletions
diff --git a/src/common/bit_field.h b/src/common/bit_field.h index dfa38a357..26ae6c7fc 100644 --- a/src/common/bit_field.h +++ b/src/common/bit_field.h | |||
| @@ -161,7 +161,7 @@ public: | |||
| 161 | } | 161 | } |
| 162 | } | 162 | } |
| 163 | 163 | ||
| 164 | /// This constructor and assignment operator might be considered ambiguous: | 164 | // This constructor and assignment operator might be considered ambiguous: |
| 165 | // Would they initialize the storage or just the bitfield? | 165 | // Would they initialize the storage or just the bitfield? |
| 166 | // Hence, delete them. Use the Assign method to set bitfield values! | 166 | // Hence, delete them. Use the Assign method to set bitfield values! |
| 167 | BitField(T val) = delete; | 167 | BitField(T val) = delete; |
diff --git a/src/common/detached_tasks.cpp b/src/common/detached_tasks.cpp index f268d6021..f2b4939df 100644 --- a/src/common/detached_tasks.cpp +++ b/src/common/detached_tasks.cpp | |||
| @@ -34,8 +34,7 @@ void DetachedTasks::AddTask(std::function<void()> task) { | |||
| 34 | std::unique_lock lock{instance->mutex}; | 34 | std::unique_lock lock{instance->mutex}; |
| 35 | --instance->count; | 35 | --instance->count; |
| 36 | std::notify_all_at_thread_exit(instance->cv, std::move(lock)); | 36 | std::notify_all_at_thread_exit(instance->cv, std::move(lock)); |
| 37 | }) | 37 | }).detach(); |
| 38 | .detach(); | ||
| 39 | } | 38 | } |
| 40 | 39 | ||
| 41 | } // namespace Common | 40 | } // namespace Common |
diff --git a/src/common/math_util.h b/src/common/math_util.h index 83ef0201f..abca3177c 100644 --- a/src/common/math_util.h +++ b/src/common/math_util.h | |||
| @@ -54,6 +54,6 @@ struct Rectangle { | |||
| 54 | }; | 54 | }; |
| 55 | 55 | ||
| 56 | template <typename T> | 56 | template <typename T> |
| 57 | Rectangle(T, T, T, T)->Rectangle<T>; | 57 | Rectangle(T, T, T, T) -> Rectangle<T>; |
| 58 | 58 | ||
| 59 | } // namespace Common | 59 | } // namespace Common |