Changeset 7624 in orxonox.OLD for branches/qt_gui/src/lib/util/file.cc
- Timestamp:
- May 16, 2006, 9:04:24 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/qt_gui/src/lib/util/file.cc
r7623 r7624 263 263 * 264 264 * 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. 265 266 */ 266 267 bool File::rename(const File& destination) 267 268 { 269 this->close(); 270 268 271 if (!std::rename(this->_name.c_str(), destination.name().c_str())) 269 272 { 270 this->close();271 273 this->_name = destination.name(); 272 274 this->statFile(); 273 274 275 return true; 275 276 } … … 292 293 } 293 294 fclose(stream); 295 296 this->statFile(); 294 297 return true; 295 298 }
Note: See TracChangeset
for help on using the changeset viewer.