comparison src/SettingsPaths.cpp @ 714:3363b7bb0d41

Once more let Uncrustify reformat my code. git-svn-id: svn://svn.code.sf.net/p/universalindent/code/trunk@985 59b1889a-e5ac-428c-b0c7-476e01d41282
author thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
date Mon, 27 Jul 2009 15:17:08 +0000
parents 90002ae3ddc9
children b9123ff53106
comparison
equal deleted inserted replaced
713:56a36f633431 714:3363b7bb0d41
231 */ 231 */
232 void SettingsPaths::cleanAndRemoveTempDir() { 232 void SettingsPaths::cleanAndRemoveTempDir() {
233 QDirIterator dirIterator(tempPath, QDirIterator::Subdirectories); 233 QDirIterator dirIterator(tempPath, QDirIterator::Subdirectories);
234 QStack<QString> directoryStack; 234 QStack<QString> directoryStack;
235 bool noErrorsOccurred = true; 235 bool noErrorsOccurred = true;
236 236
237 while ( dirIterator.hasNext() ) { 237 while ( dirIterator.hasNext() ) {
238 QString currentDirOrFile = dirIterator.next(); 238 QString currentDirOrFile = dirIterator.next();
239 // If this dummy call isn't done here, calling "dirIterator.fileInfo().isDir()" later somehow fails. 239 // If this dummy call isn't done here, calling "dirIterator.fileInfo().isDir()" later somehow fails.
240 dirIterator.fileInfo(); 240 dirIterator.fileInfo();
241 241
249 noErrorsOccurred &= couldRemoveDir; 249 noErrorsOccurred &= couldRemoveDir;
250 if ( couldRemoveDir == false ) 250 if ( couldRemoveDir == false )
251 qWarning() << __LINE__ << " " << __FUNCTION__ << "Could not remove the directory: " << dirToBeRemoved; 251 qWarning() << __LINE__ << " " << __FUNCTION__ << "Could not remove the directory: " << dirToBeRemoved;
252 //qDebug() << "Removing Dir " << directoryStack.pop(); 252 //qDebug() << "Removing Dir " << directoryStack.pop();
253 } 253 }
254 254
255 // If the iterator currently points to a directory push it onto the stack. 255 // If the iterator currently points to a directory push it onto the stack.
256 if ( dirIterator.fileInfo().isDir() ) { 256 if ( dirIterator.fileInfo().isDir() ) {
257 directoryStack.push( currentDirOrFile ); 257 directoryStack.push( currentDirOrFile );
258 //qDebug() << "Pushing onto Stack " << currentDirOrFile; 258 //qDebug() << "Pushing onto Stack " << currentDirOrFile;
259 } 259 }