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:
ctrlaltca 2018-02-02 18:52:47 +01:00 committed by Zach H
parent 3e418ba3c6
commit 517420cccb
37 changed files with 409 additions and 342 deletions

View file

@ -3,8 +3,9 @@
#include <QTabWidget>
#include "carddatabase.h"
class AbstractCardItem;
class CardInfo;
class CardInfoPicture;
class CardInfoText;
class QVBoxLayout;
@ -14,7 +15,7 @@ class CardFrame : public QTabWidget
{
Q_OBJECT
private:
CardInfo *info;
CardInfoPtr info;
CardInfoPicture *pic;
CardInfoText *text;
bool cardTextOnly;
@ -33,7 +34,7 @@ public:
void retranslateUi();
public slots:
void setCard(CardInfo *card);
void setCard(CardInfoPtr card);
void setCard(const QString &cardName);
void setCard(AbstractCardItem *card);
void clear();