Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=fwsetup-ng.git;a=commitdiff;h=40e05f01101de07a45b613281ef04ab43a9b7270

commit 40e05f01101de07a45b613281ef04ab43a9b7270
Author: James Buren <[email protected]>
Date:   Sat Aug 18 17:37:35 2012 -0500

reduce this to a skeleton class for inheritance

diff --git a/Partition.cc b/Partition.cc
index 6ce0f35..ce1122b 100644
--- a/Partition.cc
+++ b/Partition.cc
@@ -9,22 +9,14 @@ Partition::Partition()
_end = 0;

_sectors = 0;
-
-  _dos_type = 0;
-
-  _dos_active = false;
-
-  _gpt_name = "";
-
-  _gpt_uuid = "";
-
-  _gpt_type = "";
-
-  _gpt_flags = 0;
}

Partition::~Partition()
{
}

+void Partition::setActive(bool active)
+{
+}
+
// -%- strip: yes; add-newline: yes; use-tabs: no; indent-width: 2; tab-width: 
2; -%-
diff --git a/Partition.hh b/Partition.hh
index dcb19b5..131b2d1 100644
--- a/Partition.hh
+++ b/Partition.hh
@@ -10,18 +10,13 @@ class Partition
public:
Partition();
~Partition();
+  virtual void setActive(bool active);

-private:
+protected:
unsigned long long _number;
unsigned long long _start;
unsigned long long _end;
unsigned long long _sectors;
-  unsigned char _dos_type;
-  bool _dos_active;
-  string _gpt_name;
-  string _gpt_uuid;
-  string _gpt_type;
-  unsigned long long _gpt_flags;

};
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to