diff options
author | Max Kellermann <max@duempel.org> | 2014-07-14 15:57:48 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-07-14 15:57:48 +0200 |
commit | e74e1256d459894d81f0ad1e4a9c7a2b89f19078 (patch) | |
tree | f60eccb3c531bcb6f9310f8938cc91f9d729a477 | |
parent | 96abd70c13885eb38a65e6a02cb24ef1fce0008d (diff) | |
download | mpd-e74e1256d459894d81f0ad1e4a9c7a2b89f19078.tar.gz mpd-e74e1256d459894d81f0ad1e4a9c7a2b89f19078.tar.xz mpd-e74e1256d459894d81f0ad1e4a9c7a2b89f19078.zip |
util/Cast: fix indent
-rw-r--r-- | src/util/Cast.hxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/util/Cast.hxx b/src/util/Cast.hxx index 69172e6de..8fd1fe5e0 100644 --- a/src/util/Cast.hxx +++ b/src/util/Cast.hxx @@ -38,21 +38,21 @@ static constexpr void * OffsetPointer(void *p, ptrdiff_t offset) { - return (char *)p + offset; + return (char *)p + offset; } template<typename T, typename U> static constexpr T * OffsetCast(U *p, ptrdiff_t offset) { - return reinterpret_cast<T *>(OffsetPointer(p, offset)); + return reinterpret_cast<T *>(OffsetPointer(p, offset)); } /** * Cast the given pointer to a struct member to its parent structure. */ #define ContainerCast(p, container, attribute) \ - OffsetCast<container, decltype(((container*)nullptr)->attribute)>\ - ((p), -ptrdiff_t(offsetof(container, attribute))) + OffsetCast<container, decltype(((container*)nullptr)->attribute)> \ + ((p), -ptrdiff_t(offsetof(container, attribute))) #endif |