Commit c6817f19 authored by Francisco Jerez's avatar Francisco Jerez
Browse files

clover/util: Pass initial count value to ref_counter constructor.



And mark the ref_count() method as const.
Tested-by: Serge Martin's avatarEdB <edb+mesa@sigluy.net>
parent 37e4d22e
......@@ -31,10 +31,10 @@ namespace clover {
///
class ref_counter {
public:
ref_counter() : _ref_count(1) {}
ref_counter(unsigned value = 1) : _ref_count(value) {}
unsigned
ref_count() {
ref_count() const {
return _ref_count;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment