Probably null change: make sure that all classes with destructors also have copy constructors and assignment operators

This commit is contained in:
Jean-Francois Dockes
2021-11-23 16:38:11 +01:00
parent f813c1356e
commit 756a944ef3
75 changed files with 282 additions and 165 deletions
+2
View File
@@ -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>);
+2
View File
@@ -39,6 +39,8 @@ public:
FragButs(QWidget* parent = 0);
virtual ~FragButs();
FragButs(const FragButs&) = delete;
FragButs& operator=(const FragButs&) = delete;
struct ButFrag {
QAbstractButton *button;
+3 -2
View File
@@ -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();
+2
View File
@@ -65,6 +65,8 @@ public:
init();
}
~RclMain() {}
RclMain(const RclMain&) = delete;
RclMain& operator=(const RclMain&) = delete;
QString getQueryDescription();
+2
View File
@@ -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
+2
View File
@@ -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();
+2
View File
@@ -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();
+2
View File
@@ -39,6 +39,8 @@ public:
init();
}
~UIPrefsDialog(){};
UIPrefsDialog(const UIPrefsDialog&) = delete;
UIPrefsDialog& operator=(const UIPrefsDialog&) = delete;
virtual void init();
void setFromPrefs();
+2
View File
@@ -36,6 +36,8 @@ public:
init();
}
~ViewAction() {}
ViewAction(const ViewAction&) = delete;
ViewAction& operator=(const ViewAction&) = delete;
void selectMT(const QString& mt);
public slots:
+2
View File
@@ -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;