]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
common | cleanup: buffer.cc 18312/head
authorShinobu Kinjo <shinobu@redhat.com>
Sun, 15 Oct 2017 04:41:06 +0000 (13:41 +0900)
committerShinobu Kinjo <shinobu@redhat.com>
Sun, 15 Oct 2017 04:41:06 +0000 (13:41 +0900)
Signed-off-by: Shinobu Kinjo <shinobu@redhat.com>
src/common/buffer.cc

index eef094ed7d894238a0fda4272ab16188ba0f9546..fa567d411272e9c178f99c3090b1a473c15196aa 100644 (file)
@@ -212,11 +212,12 @@ using namespace ceph;
       }
     }
 
+private:
     // no copying.
     // cppcheck-suppress noExplicitConstructor
-    raw(const raw &other);
-    const raw& operator=(const raw &other);
-
+    raw(const raw &other) = delete;
+    const raw& operator=(const raw &other) = delete;
+public:
     virtual char *get_data() {
       return data;
     }