Skip to content
Permalink
Browse files

[win] Fix some warnings

  • Loading branch information
nyalldawson committed Sep 17, 2018
1 parent a0dceb1 commit 1d8dbda6a17f5d0b3effc090513357622b546d99
@@ -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 @@


class ConsoleFeedBack(QgsProcessingFeedback):

def reportError(self, error, fatalError=False):
print(error)

0 comments on commit 1d8dbda

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