Changeset 1429 for trunk


Ignore:
Timestamp:
Dec 17, 2011, 2:46:41 AM (9 years ago)
Author:
Peter Johansson
Message:

simplify code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/rmdirhier.cc

    r1428 r1429  
    5757    DirectoryUtil du(dir);
    5858    for (DirectoryUtil::const_iterator node=du.begin(); node!=du.end();++node){
    59       if ((file_name(node->path())==".") || (file_name(node->path())==".."))
    60         continue;
    61       rmdirhier(node->path());
     59      if ((file_name(node->path())!=".") && (file_name(node->path())!=".."))
     60        rmdirhier(node->path());
    6261    }
    6362
Note: See TracChangeset for help on using the changeset viewer.