Skip to content

Commit

Permalink
Fix some warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Nov 12, 2018
1 parent c79a9a1 commit 8caab49
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/native/win/qgswinnative.cpp
Expand Up @@ -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;
}

Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit 8caab49

Please sign in to comment.