mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-15 11:38:49 -07:00
Replace CardInfo* and Carset* with smart pointers (#3053)
* Replace CardInfo* and Carset* with smart pointers * fixes to help memory & c++11 stuff
This commit is contained in:
parent
3e418ba3c6
commit
517420cccb
37 changed files with 409 additions and 342 deletions
|
|
@ -7,6 +7,8 @@
|
|||
#include <QDir>
|
||||
#include <QLineEdit>
|
||||
|
||||
#include "carddatabase.h"
|
||||
|
||||
class CardDatabaseModel;
|
||||
class CardDatabaseDisplayModel;
|
||||
class DeckListModel;
|
||||
|
|
@ -19,7 +21,6 @@ class DeckLoader;
|
|||
class Response;
|
||||
class FilterTreeModel;
|
||||
class FilterBuilder;
|
||||
class CardInfo;
|
||||
class QGroupBox;
|
||||
class QHBoxLayout;
|
||||
class QVBoxLayout;
|
||||
|
|
@ -95,7 +96,7 @@ private slots:
|
|||
void saveDbHeaderState();
|
||||
|
||||
private:
|
||||
CardInfo *currentCardInfo() const;
|
||||
CardInfoPtr currentCardInfo() const;
|
||||
void addCardHelper(QString zoneName);
|
||||
void offsetCountAtIndex(const QModelIndex &idx, int offset);
|
||||
void decrementCardHelper(QString zoneName);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue