Skip to content
Permalink
Browse files

Fix some warnings

  • Loading branch information
nyalldawson committed Nov 11, 2018
1 parent c79a9a1 commit 8caab49eb94e0f32c8a1ca5edad239efd1fa4dab
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/native/win/qgswinnative.cpp
@@ -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()

0 comments on commit 8caab49

Please sign in to comment.
You can’t perform that action at this time.