Probably null change: make sure that all classes with destructors also have copy constructors and assignment operators
This commit is contained in:
@@ -42,6 +42,8 @@ class AdvSearchHist {
|
||||
public:
|
||||
AdvSearchHist();
|
||||
~AdvSearchHist();
|
||||
AdvSearchHist(const AdvSearchHist&) = delete;
|
||||
AdvSearchHist& operator=(const AdvSearchHist&) = delete;
|
||||
|
||||
// Add entry
|
||||
bool push(std::shared_ptr<Rcl::SearchData>);
|
||||
|
||||
@@ -39,6 +39,8 @@ public:
|
||||
|
||||
FragButs(QWidget* parent = 0);
|
||||
virtual ~FragButs();
|
||||
FragButs(const FragButs&) = delete;
|
||||
FragButs& operator=(const FragButs&) = delete;
|
||||
|
||||
struct ButFrag {
|
||||
QAbstractButton *button;
|
||||
|
||||
@@ -38,8 +38,9 @@ public:
|
||||
LoadThread(RclConfig *conf,
|
||||
const Rcl::Doc& idoc, bool pvhtml, QObject *parent = 0);
|
||||
|
||||
virtual ~LoadThread() {
|
||||
}
|
||||
virtual ~LoadThread() {}
|
||||
LoadThread(const LoadThread&) = delete;
|
||||
LoadThread& operator=(const LoadThread&) = delete;
|
||||
|
||||
virtual void run();
|
||||
|
||||
|
||||
@@ -65,6 +65,8 @@ public:
|
||||
init();
|
||||
}
|
||||
~RclMain() {}
|
||||
RclMain(const RclMain&) = delete;
|
||||
RclMain& operator=(const RclMain&) = delete;
|
||||
|
||||
QString getQueryDescription();
|
||||
|
||||
|
||||
@@ -54,6 +54,8 @@ class ResList : public RESLIST_PARENTCLASS
|
||||
public:
|
||||
ResList(QWidget* parent = 0, const char* name = 0);
|
||||
virtual ~ResList();
|
||||
ResList(const ResList&) = delete;
|
||||
ResList& operator=(const ResList&) = delete;
|
||||
|
||||
// Return document for given docnum. We mostly act as an
|
||||
// intermediary to the docseq here, but this has also the
|
||||
|
||||
@@ -144,6 +144,8 @@ public:
|
||||
}
|
||||
|
||||
virtual ~ResTable() {}
|
||||
ResTable(const ResTable&) = delete;
|
||||
ResTable& operator=(const ResTable&) = delete;
|
||||
virtual RecollModel *getModel() {return m_model;}
|
||||
virtual ResTableDetailArea* getDetailArea() {return m_detail;}
|
||||
virtual int getDetailDocNumOrTopRow();
|
||||
|
||||
@@ -49,6 +49,8 @@ class SCBase : public QObject {
|
||||
Q_OBJECT;
|
||||
public:
|
||||
~SCBase();
|
||||
SCBase(const SCBase&) = delete;
|
||||
SCBase& operator=(const SCBase&) = delete;
|
||||
|
||||
/* Return a reference to the instantiated singleton */
|
||||
static SCBase& scBase();
|
||||
|
||||
@@ -39,6 +39,8 @@ public:
|
||||
init();
|
||||
}
|
||||
~UIPrefsDialog(){};
|
||||
UIPrefsDialog(const UIPrefsDialog&) = delete;
|
||||
UIPrefsDialog& operator=(const UIPrefsDialog&) = delete;
|
||||
|
||||
virtual void init();
|
||||
void setFromPrefs();
|
||||
|
||||
@@ -36,6 +36,8 @@ public:
|
||||
init();
|
||||
}
|
||||
~ViewAction() {}
|
||||
ViewAction(const ViewAction&) = delete;
|
||||
ViewAction& operator=(const ViewAction&) = delete;
|
||||
void selectMT(const QString& mt);
|
||||
|
||||
public slots:
|
||||
|
||||
@@ -35,6 +35,8 @@ class WebcacheModel : public QAbstractTableModel {
|
||||
public:
|
||||
WebcacheModel(QObject *parent = 0);
|
||||
~WebcacheModel();
|
||||
WebcacheModel(const WebcacheModel&) = delete;
|
||||
WebcacheModel& operator=(const WebcacheModel&) = delete;
|
||||
|
||||
// Reimplemented methods
|
||||
virtual int rowCount (const QModelIndex& = QModelIndex()) const;
|
||||
|
||||
Reference in New Issue
Block a user