equal
deleted
inserted
replaced
145 } |
145 } |
146 |
146 |
147 int FmUtils::renameDrive( const QString &driverName, const QString &newVolumeName) |
147 int FmUtils::renameDrive( const QString &driverName, const QString &newVolumeName) |
148 { |
148 { |
149 Q_UNUSED( driverName ); |
149 Q_UNUSED( driverName ); |
150 foreach( QChar ch, newVolumeName ) |
150 foreach( const QChar &ch, newVolumeName ) |
151 { |
151 { |
152 // If not alphadigit or space, return error |
152 // If not alphadigit or space, return error |
153 if( !ch.isLetterOrNumber() && !ch.isSpace() ) |
153 if( !ch.isLetterOrNumber() && !ch.isSpace() ) |
154 { |
154 { |
155 return FmErrBadName; |
155 return FmErrBadName; |