[gnome-system-monitor] Initialize all members of GUI and make it NonCopyable.
- From: Robert Roth <robertroth src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-system-monitor] Initialize all members of GUI and make it NonCopyable.
- Date: Sat, 3 Jan 2015 14:00:35 +0000 (UTC)
commit f1651a7dd1bbaa68fe8d31ec1ab9475c797692d2
Author: BenoƮt Dejean <bdejean gmail com>
Date: Mon Apr 28 13:19:52 2014 +0200
Initialize all members of GUI and make it NonCopyable.
https://bugzilla.gnome.org/show_bug.cgi?id=742070
src/lsof.cpp | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/src/lsof.cpp b/src/lsof.cpp
index f3f5f8f..7f0d179 100644
--- a/src/lsof.cpp
+++ b/src/lsof.cpp
@@ -81,7 +81,7 @@ namespace
};
- struct GUI {
+ struct GUI : private procman::NonCopyable {
GtkListStore *model;
GtkEntry *entry;
@@ -92,6 +92,12 @@ namespace
GUI()
+ : model(NULL),
+ entry(NULL),
+ window(NULL),
+ count(NULL),
+ app(NULL),
+ case_insensitive()
{
procman_debug("New Lsof GUI %p", this);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]