* Small readability changes to the supported types functions.
* Moved the module definition to the end of the source file, so that the lengthy prototype could be be removed. * Fixed the *_supports_initializing() hooks. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21916 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -240,17 +240,18 @@ PartitionType::SetContentType(const char *contentType)
|
||||
/*!
|
||||
\brief Finds next supported partition.
|
||||
*/
|
||||
void
|
||||
bool
|
||||
PartitionType::FindNext()
|
||||
{
|
||||
for (int32 i = 0; kPartitionTypes[i].name; i++) {
|
||||
if (fType < kPartitionTypes[i].type) {
|
||||
fType = kPartitionTypes[i].type;
|
||||
fValid = true;
|
||||
return;
|
||||
return true;
|
||||
}
|
||||
}
|
||||
fValid = false;
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user