* 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:
Ingo Weinhold
2007-08-12 23:53:47 +00:00
parent ac7fc18b09
commit c6aab4598b
3 changed files with 230 additions and 362 deletions
@@ -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;
}