File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -93,7 +93,7 @@ std::unique_ptr< wchar_t[] > pathToWChar( const QString &path )
93
93
94
94
std::unique_ptr< wchar_t [] > pathArray ( new wchar_t [static_cast < uint>( nativePath.length () + 1 )] );
95
95
nativePath.toWCharArray ( pathArray.get () );
96
- pathArray[nativePath.length ()] = 0 ;
96
+ pathArray[static_cast < size_t >( nativePath.length () )] = 0 ;
97
97
return pathArray;
98
98
}
99
99
@@ -136,7 +136,7 @@ void QgsWinNative::setApplicationProgress( double progress )
136
136
{
137
137
mTaskProgress ->setMaximum ( 100 );
138
138
mTaskProgress ->show ();
139
- mTaskProgress ->setValue ( progress );
139
+ mTaskProgress ->setValue ( static_cast < int >( std::round ( progress ) ) );
140
140
}
141
141
142
142
void QgsWinNative::hideApplicationProgress ()
You can’t perform that action at this time.
0 commit comments