mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-03 00:02:25 -05:00
Fix some warnings
This commit is contained in:
parent
c79a9a1954
commit
8caab49eb9
@ -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 )] );
|
std::unique_ptr< wchar_t[] > pathArray( new wchar_t[static_cast< uint>( nativePath.length() + 1 )] );
|
||||||
nativePath.toWCharArray( pathArray.get() );
|
nativePath.toWCharArray( pathArray.get() );
|
||||||
pathArray[nativePath.length()] = 0;
|
pathArray[static_cast< size_t >( nativePath.length() )] = 0;
|
||||||
return pathArray;
|
return pathArray;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -136,7 +136,7 @@ void QgsWinNative::setApplicationProgress( double progress )
|
|||||||
{
|
{
|
||||||
mTaskProgress->setMaximum( 100 );
|
mTaskProgress->setMaximum( 100 );
|
||||||
mTaskProgress->show();
|
mTaskProgress->show();
|
||||||
mTaskProgress->setValue( progress );
|
mTaskProgress->setValue( static_cast< int >( std::round( progress ) ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
void QgsWinNative::hideApplicationProgress()
|
void QgsWinNative::hideApplicationProgress()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user