summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--filesystemwidget.h1
-rw-r--r--smdirmodel.cpp5
-rw-r--r--smdirmodel.h1
-rw-r--r--smdirwatcher.cpp9
-rw-r--r--smdirwatcher.h1
5 files changed, 0 insertions, 17 deletions
diff --git a/filesystemwidget.h b/filesystemwidget.h
index 62c42db..bc5dbcb 100644
--- a/filesystemwidget.h
+++ b/filesystemwidget.h
@@ -28,7 +28,6 @@ class FilesystemWidget : public QWidget {
public:
enum ClipboardMode { Copy, Cut, None };
FilesystemWidget(QWidget *parent = 0);
- ~FilesystemWidget() {}
FileView *fileView() { return mFileView; }
FilesystemFileProxy *fileProxy() { return mFileProxy; }
FileSystemModel *dirModel() { return mModel; }
diff --git a/smdirmodel.cpp b/smdirmodel.cpp
index 1a631ba..1d90573 100644
--- a/smdirmodel.cpp
+++ b/smdirmodel.cpp
@@ -30,11 +30,6 @@ SmDirModel::SmDirModel(const QStringList &headers, QObject *parent) : SmTreeMode
connect(mCollector, SIGNAL(newData(QList<QVariant>,int)), this, SLOT(dirEvent(QList<QVariant>,int)), Qt::BlockingQueuedConnection);
}
-SmDirModel::~SmDirModel(){
- delete mWatch;
- delete mRunTimer;
-}
-
QVariant SmDirModel::data(const QModelIndex &index, int role) const{
if(!index.isValid()){
return QVariant();
diff --git a/smdirmodel.h b/smdirmodel.h
index 8f000e4..8522662 100644
--- a/smdirmodel.h
+++ b/smdirmodel.h
@@ -27,7 +27,6 @@ class SmDirModel : public SmTreeModel {
enum { NumFields = 9 };
enum FileDate { Access, Modified, Status };
explicit SmDirModel(const QStringList &headers, QObject *parent = 0);
- ~SmDirModel();
virtual QVariant data(const QModelIndex &index, int role) const;
virtual bool setData(const QModelIndex &index, const QVariant &value, int role);
bool isDir(const QModelIndex &idx) const;
diff --git a/smdirwatcher.cpp b/smdirwatcher.cpp
index 09aead4..9883a85 100644
--- a/smdirwatcher.cpp
+++ b/smdirwatcher.cpp
@@ -37,15 +37,6 @@ SmDirWatcher::SmDirWatcher(int numFields, QObject *parent) : QThread(parent), mF
mCollector->start();
}
-SmDirWatcher::~SmDirWatcher(){
- mCollector->terminate();
- mCollector->wait();
- if(mFd && mDescr){
- inotify_rm_watch(mFd, mDescr);
- }
- delete mINdata;
-}
-
void SmDirWatcher::setDir(const QString &dir){
if(mDescr){
inotify_rm_watch(mFd, mDescr); //generates IN_IGNORE ???
diff --git a/smdirwatcher.h b/smdirwatcher.h
index 3a30360..5f3ef55 100644
--- a/smdirwatcher.h
+++ b/smdirwatcher.h
@@ -27,7 +27,6 @@ class SmDirWatcher : public QThread {
enum DWEvent { None, Added, Deleted, Modified, Populate };
explicit SmDirWatcher(int numFields, QObject *parent = 0);
SmDataColletor *collector() { return mCollector; }
- ~SmDirWatcher();
signals:
void dwEvent(const QString& file, int event);