Module: Mesa Branch: master Commit: c6817f19f60b9b87f55f67cd4dc304a5a2f32414 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=c6817f19f60b9b87f55f67cd4dc304a5a2f32414
Author: Francisco Jerez <[email protected]> Date: Sun Aug 17 23:26:49 2014 +0300 clover/util: Pass initial count value to ref_counter constructor. And mark the ref_count() method as const. Tested-by: EdB <[email protected]> --- src/gallium/state_trackers/clover/util/pointer.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gallium/state_trackers/clover/util/pointer.hpp b/src/gallium/state_trackers/clover/util/pointer.hpp index b790fd4..aa119a4 100644 --- a/src/gallium/state_trackers/clover/util/pointer.hpp +++ b/src/gallium/state_trackers/clover/util/pointer.hpp @@ -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; } _______________________________________________ mesa-commit mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/mesa-commit
