From 424f75c9e1df09d8a62a11b96700b347b871eaf8 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 21 Jan 2019 21:19:09 +0100 Subject: [PATCH] util/OffsetPointer: remove redundant `inline` keywords from `constexpr` functions --- src/util/OffsetPointer.hxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/util/OffsetPointer.hxx b/src/util/OffsetPointer.hxx index ddb301610..a1fb03f2a 100644 --- a/src/util/OffsetPointer.hxx +++ b/src/util/OffsetPointer.hxx @@ -34,7 +34,7 @@ /** * Offset the given pointer by the specified number of bytes. */ -static inline constexpr void * +constexpr void * OffsetPointer(void *p, ptrdiff_t offset) { return (char *)p + offset; @@ -43,7 +43,7 @@ OffsetPointer(void *p, ptrdiff_t offset) /** * Offset the given pointer by the specified number of bytes. */ -static inline constexpr const void * +constexpr const void * OffsetPointer(const void *p, ptrdiff_t offset) { return (const char *)p + offset;