[glom] Egg::SpreadTable*: Use = delete instead of private constructors.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glom] Egg::SpreadTable*: Use = delete instead of private constructors.
- Date: Tue, 29 Mar 2016 17:40:06 +0000 (UTC)
commit 5dae2b0fc5d9bb5f09686d1d52a089872235f366
Author: Murray Cumming <murrayc murrayc com>
Date: Tue Mar 29 17:46:42 2016 +0200
Egg::SpreadTable*: Use = delete instead of private constructors.
.../eggspreadtablemm/eggspreadtabledndmm.h | 7 +++----
.../eggspreadtablemm/eggspreadtablemm.h | 7 +++----
2 files changed, 6 insertions(+), 8 deletions(-)
---
diff --git a/glom/utility_widgets/eggspreadtablemm/eggspreadtabledndmm.h
b/glom/utility_widgets/eggspreadtablemm/eggspreadtabledndmm.h
index 4a07ef8..a0a51eb 100644
--- a/glom/utility_widgets/eggspreadtablemm/eggspreadtabledndmm.h
+++ b/glom/utility_widgets/eggspreadtablemm/eggspreadtabledndmm.h
@@ -44,6 +44,9 @@ class SpreadTableDnd
typedef EggSpreadTableDndClass BaseClassType;
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
+ SpreadTableDnd(const SpreadTableDnd&) = delete;
+ SpreadTableDnd& operator=(const SpreadTableDnd&) = delete;
+
virtual ~SpreadTableDnd();
#ifndef DOXYGEN_SHOULD_SKIP_THIS
@@ -52,10 +55,6 @@ private:
friend class SpreadTableDnd_Class;
static CppClassType spreadtable_class_;
- // noncopyable
- SpreadTableDnd(const SpreadTableDnd&);
- SpreadTableDnd& operator=(const SpreadTableDnd&);
-
protected:
explicit SpreadTableDnd(const Glib::ConstructParams& construct_params);
explicit SpreadTableDnd(EggSpreadTableDnd* castitem);
diff --git a/glom/utility_widgets/eggspreadtablemm/eggspreadtablemm.h
b/glom/utility_widgets/eggspreadtablemm/eggspreadtablemm.h
index 889446f..084c941 100644
--- a/glom/utility_widgets/eggspreadtablemm/eggspreadtablemm.h
+++ b/glom/utility_widgets/eggspreadtablemm/eggspreadtablemm.h
@@ -45,6 +45,9 @@ class SpreadTable
typedef EggSpreadTableClass BaseClassType;
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
+ SpreadTable(const SpreadTable&) = delete;
+ SpreadTable& operator=(const SpreadTable&) = delete;
+
virtual ~SpreadTable();
#ifndef DOXYGEN_SHOULD_SKIP_THIS
@@ -53,10 +56,6 @@ private:
friend class SpreadTable_Class;
static CppClassType spreadtable_class_;
- // noncopyable
- SpreadTable(const SpreadTable&);
- SpreadTable& operator=(const SpreadTable&);
-
protected:
explicit SpreadTable(const Glib::ConstructParams& construct_params);
explicit SpreadTable(EggSpreadTable* castitem);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]