[gnome-system-monitor] Deleted ProcInfo's copy and copy-assignment constructors



commit f12b94715c226c3dca51ee97569f9f074843a755
Author: Artem Vorotnikov <artem vorotnikov me>
Date:   Wed Dec 28 19:27:22 2016 +0300

    Deleted ProcInfo's copy and copy-assignment constructors
    
    Signed-off-by: Artem Vorotnikov <artem vorotnikov me>
    
    https://bugzilla.gnome.org/show_bug.cgi?id=776653

 src/application.h |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/src/application.h b/src/application.h
index b4c21cc..c2be9eb 100644
--- a/src/application.h
+++ b/src/application.h
@@ -133,11 +133,9 @@ MutableProcInfo()
 class ProcInfo
 : public MutableProcInfo
 {
-    /* undefined */ ProcInfo& operator=(const ProcInfo&);
-    /* undefined */ ProcInfo(const ProcInfo&);
-
   public:
-
+    ProcInfo& operator=(const ProcInfo&) = delete;
+    ProcInfo(const ProcInfo&) = delete;
     // TODO: use a set instead
     // sorted by pid. The map has a nice property : it is sorted
     // by pid so this helps a lot when looking for the parent node


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]