Fix code formatting and simplify code a little bit
svn-id: r30912
This commit is contained in:
parent
065f8f5419
commit
a905de7deb
1 changed files with 3 additions and 6 deletions
|
@ -69,12 +69,9 @@ FilesystemNode &FilesystemNode::operator= (const FilesystemNode &node) {
|
|||
return *this;
|
||||
}
|
||||
|
||||
bool FilesystemNode::operator<(const FilesystemNode& node) const
|
||||
{
|
||||
if (isDirectory() && !node.isDirectory())
|
||||
return true;
|
||||
if (!isDirectory() && node.isDirectory())
|
||||
return false;
|
||||
bool FilesystemNode::operator<(const FilesystemNode& node) const {
|
||||
if (isDirectory() != node.isDirectory())
|
||||
return isDirectory();
|
||||
|
||||
return scumm_stricmp(getDisplayName().c_str(), node.getDisplayName().c_str()) < 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue