From 18f29ded6a83875c27395d254c25e3d152ae1cc6 Mon Sep 17 00:00:00 2001 From: Martin Sustrik Date: Thu, 13 Jan 2011 11:44:23 +0100 Subject: Make cppcheck not complain about "'operator=' should return something" Signed-off-by: Martin Sustrik --- src/array.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/array.hpp') diff --git a/src/array.hpp b/src/array.hpp index 8d92f54..e3662da 100644 --- a/src/array.hpp +++ b/src/array.hpp @@ -59,7 +59,7 @@ namespace zmq int array_index; array_item_t (const array_item_t&); - void operator = (const array_item_t&); + const array_item_t &operator = (const array_item_t&); }; // Fast array implementation with O(1) access to item, insertion and @@ -138,7 +138,7 @@ namespace zmq items_t items; array_t (const array_t&); - void operator = (const array_t&); + const array_t &operator = (const array_t&); }; } -- cgit v1.2.3