]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
include/buffer.h: fix operator=
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Wed, 6 Feb 2013 11:02:47 +0000 (12:02 +0100)
committerSage Weil <sage@inktank.com>
Wed, 6 Feb 2013 16:42:03 +0000 (08:42 -0800)
commit0327cbaa2ab48b8da8aad181f55ce4e48fe3946c
tree343f1e7b1ae430a87f31ae6cf1bccc9508fdb9a7
parentad526c0e442ce9b1069d90816e898ede36fb1066
include/buffer.h: fix operator=

Fix operator=: return "iterator&" instead of 'iterator'. Check if 'this'
equals 'other' before set anything.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
src/include/buffer.h