diff options
author | srs5694 <srs5694@users.sourceforge.net> | 2010-09-24 20:39:41 -0400 |
---|---|---|
committer | srs5694 <srs5694@users.sourceforge.net> | 2010-09-24 20:39:41 -0400 |
commit | 5a081757ea2e32a491349544fea92826ccf739f6 (patch) | |
tree | 08a33c9b6b6a1a9a8e6c492b21287b972306b185 /parttypes.cc | |
parent | 82f3f0b529ec1bb936141ae41b03f95c72ce573a (diff) | |
download | sgdisk-5a081757ea2e32a491349544fea92826ccf739f6.tar.gz |
Added -F option to sgdisk
Diffstat (limited to 'parttypes.cc')
-rw-r--r-- | parttypes.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/parttypes.cc b/parttypes.cc index a9cdf79..37f47a7 100644 --- a/parttypes.cc +++ b/parttypes.cc @@ -238,7 +238,7 @@ PartType & PartType::operator=(uint16_t ID) { } // PartType::operator=(uint16_t ID) // Return the English description of the partition type (e.g., "Linux/Windows data") -string PartType::TypeName(void) { +string PartType::TypeName(void) const { AType* theItem = allTypes; int found = 0; string typeName; @@ -262,7 +262,7 @@ string PartType::TypeName(void) { // is set to 0. This enables control of which values get returned when // there are multiple possibilities, but opens the algorithm up to the // potential for problems should the data in the list be bad. -uint16_t PartType::GetHexType() { +uint16_t PartType::GetHexType() const { AType* theItem = allTypes; int found = 0; uint16_t theID = 0xFFFF; @@ -285,7 +285,7 @@ uint16_t PartType::GetHexType() { // Note: This function assumes an 80-column display. On wider displays, // it stops at under 80 columns; on narrower displays, lines will wrap // in an ugly way. -void PartType::ShowAllTypes(void) { +void PartType::ShowAllTypes(void) const { int colCount = 1; // column count size_t i; AType* thisType = allTypes; @@ -312,7 +312,7 @@ void PartType::ShowAllTypes(void) { } // PartType::ShowTypes() // Returns 1 if code is a valid extended MBR code, 0 if it's not -int PartType::Valid(uint16_t code) { +int PartType::Valid(uint16_t code) const { AType* thisType = allTypes; int found = 0; |