Skip to content

Commit

Permalink
[win] Fix some warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Sep 17, 2018
1 parent a0dceb1 commit 1d8dbda
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions external/wintoast/src/wintoastlib.h
Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions src/native/win/qgswinnative.cpp
Expand Up @@ -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 );
Expand Down Expand Up @@ -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";
}
Expand Down
1 change: 1 addition & 0 deletions tests/src/python/test_qgsprocessinginplace.py
Expand Up @@ -26,6 +26,7 @@


class ConsoleFeedBack(QgsProcessingFeedback):

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

Expand Down

0 comments on commit 1d8dbda

Please sign in to comment.