Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion applets/dde-apps/itemspage.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-FileCopyrightText: 2023 UnionTech Software Technology Co., Ltd.
// SPDX-FileCopyrightText: 2023-2026 UnionTech Software Technology Co., Ltd.
//
// SPDX-License-Identifier: GPL-3.0-or-later

Expand Down Expand Up @@ -52,9 +52,11 @@
return m_pages.at(page);
}

QStringList ItemsPage::firstNItems(int count)

Check warning on line 55 in applets/dde-apps/itemspage.cpp

View workflow job for this annotation

GitHub Actions / cppcheck

The function 'firstNItems' is never used.
{
QStringList result;
if (count <= 0)
return result;

for (const QStringList & pageItems : std::as_const(m_pages)) {
for (const QString & item : pageItems) {
Expand Down
2 changes: 1 addition & 1 deletion applets/dde-apps/itemspage.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-FileCopyrightText: 2023 UnionTech Software Technology Co., Ltd.
// SPDX-FileCopyrightText: 2023-2026 UnionTech Software Technology Co., Ltd.
//
// SPDX-License-Identifier: GPL-3.0-or-later

Expand Down
Loading