From 045128813d1a69a6483ff2f8f870562b96be0a65 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 13 Oct 2018 09:21:09 +0200 Subject: Remove pointless consts in function declarations --- chilbert/chilbert.hpp | 34 ++++++++++++++-------------------- 1 file changed, 14 insertions(+), 20 deletions(-) (limited to 'chilbert/chilbert.hpp') diff --git a/chilbert/chilbert.hpp b/chilbert/chilbert.hpp index 2954cf3..7a69ab2 100644 --- a/chilbert/chilbert.hpp +++ b/chilbert/chilbert.hpp @@ -34,10 +34,7 @@ namespace chilbert { * @param[out] h Hilbert Index. */ template -inline void coords_to_index(const P* const p, - const size_t m, - const size_t n, - H& h); +inline void coords_to_index(const P* p, size_t m, size_t n, H& h); /** Map the Hilbert Index `p` to a point. * @@ -50,10 +47,7 @@ inline void coords_to_index(const P* const p, * @param h Hilbert Index. */ template -inline void index_to_coords(P* const p, - const size_t m, - const size_t n, - const H& h); +inline void index_to_coords(P* p, size_t m, size_t n, const H& h); /** Map the point `p` to a Compact Hilbert Index. * @@ -68,12 +62,12 @@ inline void index_to_coords(P* const p, * @param m Optional largest precision in `m`. */ template -inline void coords_to_compact_index(const P* const p, - const size_t* const ms, - const size_t n, - H& hc, - const size_t M = 0, - const size_t m = 0); +inline void coords_to_compact_index(const P* p, + const size_t* ms, + size_t n, + H& hc, + size_t M = 0, + size_t m = 0); /** Map the Compact Hilbert Index `hc` to a point. * @@ -88,12 +82,12 @@ inline void coords_to_compact_index(const P* const p, * @param m Optional largest precision in `m`. */ template -inline void compact_index_to_coords(P* const p, - const size_t* const ms, - const size_t n, - const H& hc, - const size_t M = 0, - const size_t m = 0); +inline void compact_index_to_coords(P* p, + const size_t* ms, + size_t n, + const H& hc, + size_t M = 0, + size_t m = 0); } // namespace chilbert -- cgit v1.2.1