Skip to content

Commit

Permalink
getter return not-const list of errors
Browse files Browse the repository at this point in the history
  • Loading branch information
elpaso committed Nov 6, 2017
1 parent af57600 commit b57ec46
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion python/core/qgserror.sip
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ class QgsError
Clear error messages
%End

const QList<QgsErrorMessage> messageList() const;
QList<QgsErrorMessage> messageList() const;
%Docstring
messageList return the list of current error messages
:return: current list of error messages
Expand Down
1 change: 0 additions & 1 deletion src/app/qgsversionmigration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,6 @@ QgsError Qgs2To3Migration::migrateAuthDb()
QString msg = QStringLiteral( "Could not copy old auth DB to %1: file already exists!" ).arg( newAuthDbFilePath );
QgsDebugMsg( msg );
error.append( msg );

}
else
{
Expand Down
2 changes: 1 addition & 1 deletion src/core/qgserror.h
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ class CORE_EXPORT QgsError
* \brief messageList return the list of current error messages
* \return current list of error messages
*/
const QList<QgsErrorMessage> messageList() const { return mMessageList; }
QList<QgsErrorMessage> messageList() const { return mMessageList; }

private:
//! List of messages
Expand Down

0 comments on commit b57ec46

Please sign in to comment.