mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-15 00:04:00 -04:00
[win] Fix some warnings
This commit is contained in:
parent
a0dceb1d83
commit
1d8dbda6a1
1
external/wintoast/src/wintoastlib.h
vendored
1
external/wintoast/src/wintoastlib.h
vendored
@ -35,6 +35,7 @@ namespace WinToastLib {
|
||||
ApplicationHidden = ToastDismissalReason::ToastDismissalReason_ApplicationHidden,
|
||||
TimedOut = ToastDismissalReason::ToastDismissalReason_TimedOut
|
||||
};
|
||||
virtual ~IWinToastHandler() = default;
|
||||
virtual void toastActivated() const = 0;
|
||||
virtual void toastActivated(int actionIndex) const = 0;
|
||||
virtual void toastDismissed(WinToastDismissalReason state) const = 0;
|
||||
|
@ -70,7 +70,7 @@ void QgsWinNative::openFileExplorerAndSelectFile( const QString &path )
|
||||
const QString nativePath = QDir::toNativeSeparators( path );
|
||||
|
||||
wchar_t *pathArray = new wchar_t[static_cast< uint>( nativePath.length() + 1 )];
|
||||
nativePath.toWCharArray(pathArray);
|
||||
nativePath.toWCharArray( pathArray );
|
||||
pathArray[nativePath.length()] = 0;
|
||||
|
||||
ITEMIDLIST *pidl = ILCreateFromPathW( pathArray );
|
||||
@ -124,7 +124,7 @@ class NotificationHandler : public WinToastLib::IWinToastHandler
|
||||
|
||||
void toastActivated( int ) const override {}
|
||||
|
||||
void toastFailed() const
|
||||
void toastFailed() const override
|
||||
{
|
||||
qWarning() << "Error showing notification";
|
||||
}
|
||||
|
@ -26,6 +26,7 @@ start_app()
|
||||
|
||||
|
||||
class ConsoleFeedBack(QgsProcessingFeedback):
|
||||
|
||||
def reportError(self, error, fatalError=False):
|
||||
print(error)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user