From 99b66c9c933af61e05ae59122491d5aadea52734 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Mon, 12 Nov 2018 14:42:14 +0100 Subject: xdrstream: use more descriptive template arg name --- src/os/object/xdrstream.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/os/object') diff --git a/src/os/object/xdrstream.cc b/src/os/object/xdrstream.cc index d7a5ace..92de986 100644 --- a/src/os/object/xdrstream.cc +++ b/src/os/object/xdrstream.cc @@ -82,13 +82,13 @@ XDRStream & XDRStream::operator<<(char const *data){ return *this; } -template -XDRStream & XDRStream::operator<<(char const (&data)[N]){ +template +XDRStream & XDRStream::operator<<(char const (&data)[TSize]){ if (!is_fixed_length) { - *this << N; + *this << TSize; } uint32_t i; - for (i = 0; i < N; i++) { + for (i = 0; i < TSize; i++) { put(data[i]); } while ((i++) % 4 != 0){ -- cgit v1.2.3