Fix some warnings

This commit is contained in:
Nyall Dawson 2018-11-12 08:54:38 +10:00
parent c79a9a1954
commit 8caab49eb9

View File

@ -93,7 +93,7 @@ std::unique_ptr< wchar_t[] > pathToWChar( const QString &path )
std::unique_ptr< wchar_t[] > pathArray( new wchar_t[static_cast< uint>( nativePath.length() + 1 )] );
nativePath.toWCharArray( pathArray.get() );
pathArray[nativePath.length()] = 0;
pathArray[static_cast< size_t >( nativePath.length() )] = 0;
return pathArray;
}
@ -136,7 +136,7 @@ void QgsWinNative::setApplicationProgress( double progress )
{
mTaskProgress->setMaximum( 100 );
mTaskProgress->show();
mTaskProgress->setValue( progress );
mTaskProgress->setValue( static_cast< int >( std::round( progress ) ) );
}
void QgsWinNative::hideApplicationProgress()