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

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

View File

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