Fix identing in the code

This commit is contained in:
Romolo Manfredini
2015-05-02 11:47:11 +02:00
parent d9fb195443
commit c98cbbcd12
+12 -12
View File
@@ -364,15 +364,15 @@ bool writeEeprom(const QString &filename, ProgressWidget *progress)
#if defined WIN32 || !defined __GNUC__ #if defined WIN32 || !defined __GNUC__
bool isRemovableMedia( QString vol ) bool isRemovableMedia( QString vol )
{ {
char szDosDeviceName[MAX_PATH]; char szDosDeviceName[MAX_PATH];
UINT DriveType = GetDriveType( vol.replace("/","\\").toLatin1() ); UINT DriveType = GetDriveType( vol.replace("/","\\").toLatin1() );
if ( DriveType != DRIVE_REMOVABLE ) if ( DriveType != DRIVE_REMOVABLE )
return false; return false;
QueryDosDevice( vol.replace("/","").toLatin1(), szDosDeviceName, MAX_PATH ); QueryDosDevice( vol.replace("/","").toLatin1(), szDosDeviceName, MAX_PATH );
if ( strstr( szDosDeviceName,"\\Floppy") != NULL ) { // its a floppy if ( strstr( szDosDeviceName,"\\Floppy") != NULL ) { // its a floppy
return false; return false;
} }
return true; return true;
} }
#endif #endif
@@ -398,15 +398,15 @@ QString findMassstoragePath(const QString &filename)
bool ret = GetVolumeInformationW( (WCHAR *) drive.absolutePath().utf16(),szVolumeName,256,&dwSerialNumber,&dwMaxFileNameLength,&dwFileSystemFlags,szFileSystemName,256); bool ret = GetVolumeInformationW( (WCHAR *) drive.absolutePath().utf16(),szVolumeName,256,&dwSerialNumber,&dwMaxFileNameLength,&dwFileSystemFlags,szFileSystemName,256);
if (ret) { if (ret) {
QString vName = QString::fromUtf16 ( (const ushort *) szVolumeName) ; QString vName = QString::fromUtf16 ( (const ushort *) szVolumeName) ;
temppath = drive.absolutePath(); temppath = drive.absolutePath();
eepromfile = temppath; eepromfile = temppath;
eepromfile.append("/" + filename); eepromfile.append("/" + filename);
if (QFile::exists(eepromfile)) { if (QFile::exists(eepromfile)) {
return eepromfile; return eepromfile;
} }
} }
} }
} }
} }
#else #else
struct mount_entry *entry; struct mount_entry *entry;