Skip to content

Commit

Permalink
Minor tweaks in response to gcc warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
d1vanov committed Jan 31, 2025
1 parent 917ba05 commit 463bf75
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/model/note/NoteModel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1625,8 +1625,8 @@ void NoteModel::requestNotesList()
return;
}

const auto & notebookLocalIds = m_filters.filteredNotebookLocalIds();
const auto & tagLocalIds = m_filters.filteredTagLocalIds();
auto notebookLocalIds = m_filters.filteredNotebookLocalIds();
auto tagLocalIds = m_filters.filteredTagLocalIds();

NMDEBUG(
"Requesting notes list per notebooks "
Expand Down
2 changes: 1 addition & 1 deletion lib/model/saved_search/SavedSearchModel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ QStringList SavedSearchModel::savedSearchNames() const
}

QModelIndex SavedSearchModel::createSavedSearch(
const QString & savedSearchName, const QString & searchQuery,
QString savedSearchName, QString searchQuery,
ErrorString & errorDescription)
{
QNDEBUG(
Expand Down
2 changes: 1 addition & 1 deletion lib/model/saved_search/SavedSearchModel.h
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ class SavedSearchModel final : public AbstractItemModel, public IStartable
* otherwise
*/
[[nodiscard]] QModelIndex createSavedSearch(
const QString & savedSearchName, const QString & searchQuery,
QString savedSearchName, QString searchQuery,
ErrorString & errorDescription);

/**
Expand Down

0 comments on commit 463bf75

Please sign in to comment.