summaryrefslogtreecommitdiff
path: root/src/array.hpp
diff options
context:
space:
mode:
authorMartin Sustrik <sustrik@250bpm.com>2011-01-13 11:44:23 +0100
committerMartin Sustrik <sustrik@250bpm.com>2011-01-13 11:44:23 +0100
commit18f29ded6a83875c27395d254c25e3d152ae1cc6 (patch)
treebbfc85e87d032d00fb054dac0572262f5901a1ae /src/array.hpp
parent70513871082462c957e46986040ebe7b10d64557 (diff)
Make cppcheck not complain about "'operator=' should return something"
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
Diffstat (limited to 'src/array.hpp')
-rw-r--r--src/array.hpp4
1 files changed, 2 insertions, 2 deletions
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&);
};
}