Switch to QVector instead of QList. Insertions aren't really needed.
This commit is contained in:
parent
cfbfef9651
commit
1886dbf53c
3 changed files with 7 additions and 6 deletions
|
|
@ -30,7 +30,7 @@
|
|||
**/
|
||||
|
||||
#include <QAbstractListModel>
|
||||
#include <QList>
|
||||
#include <QVector>
|
||||
|
||||
namespace Danbooru {
|
||||
|
||||
|
|
@ -59,7 +59,7 @@ namespace Danbooru {
|
|||
QVariant data(const QModelIndex& index, int role) const;
|
||||
|
||||
private:
|
||||
QList<DanbooruPost*> m_posts;
|
||||
QVector<DanbooruPost*> m_posts;
|
||||
|
||||
public Q_SLOTS:
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue