Changes in VDataTool.

--HG--
branch : feature
This commit is contained in:
dismine 2013-09-29 14:53:42 +03:00
parent 41ae42af4b
commit 66cecc3f3d
3 changed files with 3 additions and 10 deletions

View File

@ -26,7 +26,7 @@
#include "vdatatool.h"
#include "container/vcontainer.h"
class VAbstractTool:public VDataTool{
class VAbstractTool: public VDataTool{
Q_OBJECT
public:
VAbstractTool(VDomDocument *doc, VContainer *data, qint64 id, QObject *parent = 0);

View File

@ -21,13 +21,6 @@
#include "vdatatool.h"
VDataTool::VDataTool(VContainer *data, QObject *parent) :
QObject(parent), data(*data){
}
VDataTool::~VDataTool(){
}
VDataTool &VDataTool::operator =(const VDataTool &tool){
data = tool.getData();
return *this;

View File

@ -27,8 +27,8 @@
class VDataTool : public QObject{
Q_OBJECT
public:
explicit VDataTool(VContainer *data, QObject *parent = 0);
virtual ~VDataTool();
explicit VDataTool(VContainer *data, QObject *parent = 0): QObject(parent), data(*data){}
virtual ~VDataTool(){}
VDataTool& operator= (const VDataTool &tool);
VContainer getData() const { return data; }
void setData(const VContainer *value);