Skip to content

Commit 8caab49

Browse files
committedNov 12, 2018
Fix some warnings
1 parent c79a9a1 commit 8caab49

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/native/win/qgswinnative.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ std::unique_ptr< wchar_t[] > pathToWChar( const QString &path )
9393

9494
std::unique_ptr< wchar_t[] > pathArray( new wchar_t[static_cast< uint>( nativePath.length() + 1 )] );
9595
nativePath.toWCharArray( pathArray.get() );
96-
pathArray[nativePath.length()] = 0;
96+
pathArray[static_cast< size_t >( nativePath.length() )] = 0;
9797
return pathArray;
9898
}
9999

@@ -136,7 +136,7 @@ void QgsWinNative::setApplicationProgress( double progress )
136136
{
137137
mTaskProgress->setMaximum( 100 );
138138
mTaskProgress->show();
139-
mTaskProgress->setValue( progress );
139+
mTaskProgress->setValue( static_cast< int >( std::round( progress ) ) );
140140
}
141141

142142
void QgsWinNative::hideApplicationProgress()

0 commit comments

Comments
 (0)
Please sign in to comment.