Skip to content

Commit

Permalink
PR review: cleaner code.
Browse files Browse the repository at this point in the history
  • Loading branch information
mohsenD98 committed Jun 17, 2024
1 parent 21d1b56 commit e8380fc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/core/messagelogmodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ void MessageLogModel::onMessageReceived( const QString &message, const QString &
{
if ( mSuppressedModel.contains( tag ) || tag == QLatin1String( "3D" ) )
{
for ( QString filter : mSuppressedModel[tag] )
for ( const QString &filter : mSuppressedModel[tag] )
{
if ( message.contains( filter ) )
{
Expand Down
2 changes: 1 addition & 1 deletion src/core/messagelogmodel.h
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ class MessageLogModel : public QAbstractListModel
private:
QgsMessageLog *mMessageLog = nullptr;
QVector<LogMessage> mMessages;
QMap<QString, QList<QString>> mSuppressedModel;
QMap<QString, QStringList> mSuppressedModel;
};

#endif // MESSAGELOGMODEL_H

0 comments on commit e8380fc

Please sign in to comment.