Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7624 in orxonox.OLD for branches/qt_gui/src/lib/util/file.cc


Ignore:
Timestamp:
May 16, 2006, 9:04:24 AM (18 years ago)
Author:
bensch
Message:

orxonox/qt_gui: directory is a File now

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/qt_gui/src/lib/util/file.cc

    r7623 r7624  
    263263 *
    264264 * if the File was opened, it will be closed throuh this function.
     265 * The File will also be closed, if the File was not renamed.
    265266 */
    266267bool File::rename(const File& destination)
    267268{
     269  this->close();
     270
    268271  if (!std::rename(this->_name.c_str(), destination.name().c_str()))
    269272  {
    270     this->close();
    271273    this->_name = destination.name();
    272274    this->statFile();
    273 
    274275    return true;
    275276  }
     
    292293  }
    293294  fclose(stream);
     295
     296  this->statFile();
    294297  return true;
    295298}
Note: See TracChangeset for help on using the changeset viewer.