Commit 2dc9f64b authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix clazy warning

parent c7d3f6e8
Pipeline #23243 passed with stage
in 12 minutes and 28 seconds
cmake_minimum_required(VERSION 3.5)
set(PIM_VERSION "5.14.44")
set(PIM_VERSION "5.14.45")
project(libkdepim VERSION ${PIM_VERSION})
......
......@@ -122,7 +122,7 @@ MultiplyingLineFactory *MultiplyingLineEditor::factory() const
return mMultiplyingLineFactory;
}
QList< MultiplyingLineData::Ptr > MultiplyingLineEditor::allData() const
QVector< MultiplyingLineData::Ptr > MultiplyingLineEditor::allData() const
{
return mView->allData();
}
......
......@@ -96,7 +96,7 @@ public:
MultiplyingLineFactory *factory() const;
/** Retrieve the data from the editor */
QList<MultiplyingLineData::Ptr> allData() const;
QVector<MultiplyingLineData::Ptr> allData() const;
/** Retrieve the data of the active line */
MultiplyingLineData::Ptr activeData() const;
......
......@@ -262,9 +262,9 @@ QSize MultiplyingLineView::minimumSizeHint() const
}
}
QList<MultiplyingLineData::Ptr> MultiplyingLineView::allData() const
QVector<MultiplyingLineData::Ptr> MultiplyingLineView::allData() const
{
QList<MultiplyingLineData::Ptr> data;
QVector<MultiplyingLineData::Ptr> data;
QListIterator<MultiplyingLine *> it(mLines);
while (it.hasNext()) {
......
......@@ -48,7 +48,7 @@ public:
MultiplyingLine *emptyLine() const;
QList<MultiplyingLineData::Ptr> allData() const;
QVector<MultiplyingLineData::Ptr> allData() const;
/** Removes data provided it can be found. The Data class must support operator==
@param data The data you want to remove.
......
......@@ -197,6 +197,7 @@ QStringList KCheckComboBox::checkedItems(int role) const
const QModelIndex index = model()->index(0, modelColumn(), rootModelIndex());
const QModelIndexList indexes = model()->match(index, Qt::CheckStateRole,
Qt::Checked, -1, Qt::MatchExactly);
items.reserve(indexes.count());
for (const QModelIndex &index : indexes) {
items += index.data(role).toString();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment