filemanager/src/inc/fmutils_win.cpp
changeset 18 edd66bde63a4
parent 16 ada7962b4308
child 24 1d0c87b42e2e
equal deleted inserted replaced
16:ada7962b4308 18:edd66bde63a4
   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;