summaryrefslogtreecommitdiffstats
path: root/src/common
diff options
context:
space:
mode:
authorLC <mathew1800@gmail.com>2020-08-13 21:13:21 +0200
committerGitHub <noreply@github.com>2020-08-13 21:13:21 +0200
commitff0b14ee624c056d41cb020562f57af07c710a8b (patch)
tree6642ba786c7158933e3d1e2fb41a1aa1a6e30a63 /src/common
parentMerge pull request #4497 from lioncash/freezer-alg (diff)
parentGeneral: Tidy up clang-format warnings part 2 (diff)
downloadyuzu-ff0b14ee624c056d41cb020562f57af07c710a8b.tar
yuzu-ff0b14ee624c056d41cb020562f57af07c710a8b.tar.gz
yuzu-ff0b14ee624c056d41cb020562f57af07c710a8b.tar.bz2
yuzu-ff0b14ee624c056d41cb020562f57af07c710a8b.tar.lz
yuzu-ff0b14ee624c056d41cb020562f57af07c710a8b.tar.xz
yuzu-ff0b14ee624c056d41cb020562f57af07c710a8b.tar.zst
yuzu-ff0b14ee624c056d41cb020562f57af07c710a8b.zip
Diffstat (limited to 'src/common')
-rw-r--r--src/common/bit_field.h2
-rw-r--r--src/common/detached_tasks.cpp3
-rw-r--r--src/common/math_util.h2
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:
}
}
- /// This constructor and assignment operator might be considered ambiguous:
+ // This constructor and assignment operator might be considered ambiguous:
// Would they initialize the storage or just the bitfield?
// Hence, delete them. Use the Assign method to set bitfield values!
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) {
std::unique_lock lock{instance->mutex};
--instance->count;
std::notify_all_at_thread_exit(instance->cv, std::move(lock));
- })
- .detach();
+ }).detach();
}
} // 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 {
};
template <typename T>
-Rectangle(T, T, T, T)->Rectangle<T>;
+Rectangle(T, T, T, T) -> Rectangle<T>;
} // namespace Common