From c98cbbcd12afd94ce37f327d944791688d784cc2 Mon Sep 17 00:00:00 2001 From: Romolo Manfredini Date: Sat, 2 May 2015 11:47:11 +0200 Subject: [PATCH] Fix identing in the code --- companion/src/radiointerface.cpp | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/companion/src/radiointerface.cpp b/companion/src/radiointerface.cpp index b662a544d..1e34975cf 100755 --- a/companion/src/radiointerface.cpp +++ b/companion/src/radiointerface.cpp @@ -364,15 +364,15 @@ bool writeEeprom(const QString &filename, ProgressWidget *progress) #if defined WIN32 || !defined __GNUC__ bool isRemovableMedia( QString vol ) { - char szDosDeviceName[MAX_PATH]; - UINT DriveType = GetDriveType( vol.replace("/","\\").toLatin1() ); - if ( DriveType != DRIVE_REMOVABLE ) - return false; - QueryDosDevice( vol.replace("/","").toLatin1(), szDosDeviceName, MAX_PATH ); - if ( strstr( szDosDeviceName,"\\Floppy") != NULL ) { // its a floppy - return false; - } - return true; + char szDosDeviceName[MAX_PATH]; + UINT DriveType = GetDriveType( vol.replace("/","\\").toLatin1() ); + if ( DriveType != DRIVE_REMOVABLE ) + return false; + QueryDosDevice( vol.replace("/","").toLatin1(), szDosDeviceName, MAX_PATH ); + if ( strstr( szDosDeviceName,"\\Floppy") != NULL ) { // its a floppy + return false; + } + return true; } #endif @@ -398,15 +398,15 @@ QString findMassstoragePath(const QString &filename) bool ret = GetVolumeInformationW( (WCHAR *) drive.absolutePath().utf16(),szVolumeName,256,&dwSerialNumber,&dwMaxFileNameLength,&dwFileSystemFlags,szFileSystemName,256); if (ret) { QString vName = QString::fromUtf16 ( (const ushort *) szVolumeName) ; - temppath = drive.absolutePath(); + temppath = drive.absolutePath(); eepromfile = temppath; eepromfile.append("/" + filename); if (QFile::exists(eepromfile)) { return eepromfile; } - } + } } - } + } } #else struct mount_entry *entry;