diff options
author | bunnei <bunneidev@gmail.com> | 2015-09-11 15:46:56 +0200 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2015-09-11 15:46:56 +0200 |
commit | 8c573218b1576779bf049be2d2a5a3230480c8f5 (patch) | |
tree | 91510ee77e98e33360a2d9109000c2081d93698c | |
parent | Merge pull request #1141 from lioncash/hdr (diff) | |
parent | common: Get rid of a cast in swap.h (diff) | |
download | yuzu-8c573218b1576779bf049be2d2a5a3230480c8f5.tar yuzu-8c573218b1576779bf049be2d2a5a3230480c8f5.tar.gz yuzu-8c573218b1576779bf049be2d2a5a3230480c8f5.tar.bz2 yuzu-8c573218b1576779bf049be2d2a5a3230480c8f5.tar.lz yuzu-8c573218b1576779bf049be2d2a5a3230480c8f5.tar.xz yuzu-8c573218b1576779bf049be2d2a5a3230480c8f5.tar.zst yuzu-8c573218b1576779bf049be2d2a5a3230480c8f5.zip |
-rw-r--r-- | src/common/swap.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/swap.h b/src/common/swap.h index b92e5bfa4..a7c37bc44 100644 --- a/src/common/swap.h +++ b/src/common/swap.h @@ -148,7 +148,7 @@ struct swap_struct_t { typedef swap_struct_t<T, F> swapped_t; protected: - T value; + T value = T(); static T swap(T v) { return F::swap(v); @@ -158,7 +158,7 @@ public: return swap(value); } - swap_struct_t() : value((T)0) {} + swap_struct_t() = default; swap_struct_t(const T &v): value(swap(v)) {} template <typename S> |