[glom] C++11: Specify default move operations.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glom] C++11: Specify default move operations.
- Date: Tue, 8 Nov 2016 13:44:59 +0000 (UTC)
commit 28c961aa6a0160d42910306f40010cba36390bd1
Author: Murray Cumming <murrayc murrayc com>
Date: Tue Nov 8 09:54:52 2016 +0100
C++11: Specify default move operations.
Using =default instead of =delete. We don't seem to need them or
use them, but it's hard to be sure, and we should generally have them
whenever we have copy operations.
glom/base_db.h | 4 ++--
glom/libglom/connectionpool.h | 4 ++--
glom/libglom/data_structure/choicevalue.h | 4 ++--
glom/libglom/data_structure/database_title.h | 4 ++--
glom/libglom/data_structure/field.h | 4 ++--
glom/libglom/data_structure/has_title_singular.h | 4 ++--
glom/libglom/data_structure/layout/custom_title.h | 4 ++--
glom/libglom/data_structure/layout/formatting.h | 4 ++--
glom/libglom/data_structure/layout/layoutgroup.h | 4 ++--
glom/libglom/data_structure/layout/layoutitem.h | 8 ++++----
.../data_structure/layout/layoutitem_button.h | 4 ++--
.../layout/layoutitem_calendarportal.h | 4 ++--
.../data_structure/layout/layoutitem_field.h | 4 ++--
.../data_structure/layout/layoutitem_image.h | 4 ++--
.../data_structure/layout/layoutitem_line.h | 4 ++--
.../data_structure/layout/layoutitem_notebook.h | 4 ++--
.../data_structure/layout/layoutitem_placeholder.h | 4 ++--
.../data_structure/layout/layoutitem_portal.h | 4 ++--
.../data_structure/layout/layoutitem_text.h | 4 ++--
.../layout/layoutitem_withformatting.h | 4 ++--
.../layout/report_parts/layoutitem_fieldsummary.h | 4 ++--
.../layout/report_parts/layoutitem_footer.h | 4 ++--
.../layout/report_parts/layoutitem_groupby.h | 4 ++--
.../layout/report_parts/layoutitem_header.h | 4 ++--
.../layout/report_parts/layoutitem_summary.h | 4 ++--
.../layout/report_parts/layoutitem_verticalgroup.h | 4 ++--
glom/libglom/data_structure/layout/static_text.h | 4 ++--
.../data_structure/layout/usesrelationship.h | 4 ++--
glom/libglom/data_structure/numeric_format.h | 4 ++--
glom/libglom/data_structure/print_layout.h | 4 ++--
glom/libglom/data_structure/relationship.h | 4 ++--
glom/libglom/data_structure/report.h | 4 ++--
glom/libglom/data_structure/tableinfo.h | 4 ++--
glom/libglom/document/document.h | 4 ++--
glom/utility_widgets/adddel/adddel.h | 4 ++--
35 files changed, 72 insertions(+), 72 deletions(-)
---
diff --git a/glom/base_db.h b/glom/base_db.h
index 4083c29..e47c3e9 100644
--- a/glom/base_db.h
+++ b/glom/base_db.h
@@ -199,8 +199,8 @@ protected:
LayoutFieldInRecord(const LayoutFieldInRecord& src) = delete;
LayoutFieldInRecord& operator=(const LayoutFieldInRecord& src) = delete;
- LayoutFieldInRecord(LayoutFieldInRecord&& src) = delete;
- LayoutFieldInRecord& operator=(LayoutFieldInRecord&& src) = delete;
+ LayoutFieldInRecord(LayoutFieldInRecord&& src) = default;
+ LayoutFieldInRecord& operator=(LayoutFieldInRecord&& src) = default;
FieldInRecord get_fieldinrecord(const std::shared_ptr<const Document>& document) const
{
diff --git a/glom/libglom/connectionpool.h b/glom/libglom/connectionpool.h
index dcdf8e1..80403da 100644
--- a/glom/libglom/connectionpool.h
+++ b/glom/libglom/connectionpool.h
@@ -87,9 +87,9 @@ public:
virtual ~ConnectionPool();
ConnectionPool(const ConnectionPool& src) = delete;
- ConnectionPool(ConnectionPool&& src) = delete;
+ ConnectionPool(ConnectionPool&& src) = default;
ConnectionPool& operator=(const ConnectionPool& src) = delete;
- ConnectionPool& operator=(ConnectionPool&& src) = delete;
+ ConnectionPool& operator=(ConnectionPool&& src) = default;
typedef ConnectionPoolBackends::Backend Backend;
typedef Backend::type_vec_const_fields type_vec_const_fields;
diff --git a/glom/libglom/data_structure/choicevalue.h b/glom/libglom/data_structure/choicevalue.h
index 462c209..3cc33a0 100644
--- a/glom/libglom/data_structure/choicevalue.h
+++ b/glom/libglom/data_structure/choicevalue.h
@@ -39,10 +39,10 @@ public:
ChoiceValue();
ChoiceValue(const ChoiceValue& src) = default;
- ChoiceValue(ChoiceValue&& src) = delete;
+ ChoiceValue(ChoiceValue&& src) = default;
ChoiceValue& operator=(const ChoiceValue& src) = default;
- ChoiceValue& operator=(ChoiceValue&& src) = delete;
+ ChoiceValue& operator=(ChoiceValue&& src) = default;
bool operator==(const ChoiceValue& src) const;
bool operator!=(const ChoiceValue& src) const;
diff --git a/glom/libglom/data_structure/database_title.h b/glom/libglom/data_structure/database_title.h
index 23dd914..6f57dd9 100644
--- a/glom/libglom/data_structure/database_title.h
+++ b/glom/libglom/data_structure/database_title.h
@@ -35,9 +35,9 @@ class DatabaseTitle
public:
DatabaseTitle();
DatabaseTitle(const DatabaseTitle& src) = default;;
- DatabaseTitle(DatabaseTitle&& src) = delete;
+ DatabaseTitle(DatabaseTitle&& src) = default;
DatabaseTitle& operator=(const DatabaseTitle& src) = default;;
- DatabaseTitle& operator=(DatabaseTitle&& src) = delete;
+ DatabaseTitle& operator=(DatabaseTitle&& src) = default;
};
} //namespace Glom
diff --git a/glom/libglom/data_structure/field.h b/glom/libglom/data_structure/field.h
index d3957ed..1bcc2e5 100644
--- a/glom/libglom/data_structure/field.h
+++ b/glom/libglom/data_structure/field.h
@@ -85,10 +85,10 @@ public:
Field();
Field(const Field& src) = default;
- Field(Field&& src) = delete;
+ Field(Field&& src) = default;
Field& operator=(const Field& src) = default;
- Field& operator=(Field&& src) = delete;
+ Field& operator=(Field&& src) = default;
bool operator==(const Field& src) const;
bool operator!=(const Field& src) const;
diff --git a/glom/libglom/data_structure/has_title_singular.h
b/glom/libglom/data_structure/has_title_singular.h
index 9d6a90e..e9bd7c7 100644
--- a/glom/libglom/data_structure/has_title_singular.h
+++ b/glom/libglom/data_structure/has_title_singular.h
@@ -35,11 +35,11 @@ class HasTitleSingular
public:
HasTitleSingular();
HasTitleSingular(const HasTitleSingular& src) = default;
- HasTitleSingular(HasTitleSingular&& src) = delete;
+ HasTitleSingular(HasTitleSingular&& src) = default;
virtual ~HasTitleSingular();
HasTitleSingular& operator=(const HasTitleSingular& src) = default;
- HasTitleSingular& operator=(HasTitleSingular&& src) = delete;
+ HasTitleSingular& operator=(HasTitleSingular&& src) = default;
bool operator==(const HasTitleSingular& src) const;
bool operator!=(const HasTitleSingular& src) const;
diff --git a/glom/libglom/data_structure/layout/custom_title.h
b/glom/libglom/data_structure/layout/custom_title.h
index 0b12ae4..793a4c3 100644
--- a/glom/libglom/data_structure/layout/custom_title.h
+++ b/glom/libglom/data_structure/layout/custom_title.h
@@ -33,9 +33,9 @@ public:
CustomTitle();
CustomTitle(const CustomTitle& src) = default;
- CustomTitle(CustomTitle&& src) = delete;
+ CustomTitle(CustomTitle&& src) = default;
CustomTitle& operator=(const CustomTitle& src) = default;
- CustomTitle& operator=(CustomTitle&& src) = delete;
+ CustomTitle& operator=(CustomTitle&& src) = default;
bool operator==(const CustomTitle& src) const;
diff --git a/glom/libglom/data_structure/layout/formatting.h b/glom/libglom/data_structure/layout/formatting.h
index 9fa3127..5afbc0c 100644
--- a/glom/libglom/data_structure/layout/formatting.h
+++ b/glom/libglom/data_structure/layout/formatting.h
@@ -42,9 +42,9 @@ public:
Formatting();
Formatting(const Formatting& src) = default;
- Formatting(Formatting&& src) = delete;
+ Formatting(Formatting&& src) = default;
Formatting& operator=(const Formatting& src) = default;
- Formatting& operator=(Formatting&& src) = delete;
+ Formatting& operator=(Formatting&& src) = default;
bool operator==(const Formatting& src) const;
diff --git a/glom/libglom/data_structure/layout/layoutgroup.h
b/glom/libglom/data_structure/layout/layoutgroup.h
index 1dfcfac..6c8f148 100644
--- a/glom/libglom/data_structure/layout/layoutgroup.h
+++ b/glom/libglom/data_structure/layout/layoutgroup.h
@@ -35,9 +35,9 @@ public:
LayoutGroup();
LayoutGroup(const LayoutGroup& src);
- LayoutGroup(LayoutGroup&& src) = delete;
+ LayoutGroup(LayoutGroup&& src) = default;
LayoutGroup& operator=(const LayoutGroup& src);
- LayoutGroup& operator=(LayoutGroup&& src) = delete;
+ LayoutGroup& operator=(LayoutGroup&& src) = default;
~LayoutGroup() override;
LayoutItem* clone() const override;
diff --git a/glom/libglom/data_structure/layout/layoutitem.h b/glom/libglom/data_structure/layout/layoutitem.h
index 70f8850..f5c8975 100644
--- a/glom/libglom/data_structure/layout/layoutitem.h
+++ b/glom/libglom/data_structure/layout/layoutitem.h
@@ -33,9 +33,9 @@ public:
LayoutItem();
explicit LayoutItem(const LayoutItem& src);
- LayoutItem(LayoutItem&& src) = delete;
+ LayoutItem(LayoutItem&& src) = default;
LayoutItem& operator=(const LayoutItem& src);
- LayoutItem& operator=(LayoutItem&& src) = delete;
+ LayoutItem& operator=(LayoutItem&& src) = default;
~LayoutItem() override;
/** Create a new copied instance.
@@ -93,9 +93,9 @@ private:
public:
PrintLayoutPosition();
PrintLayoutPosition(const PrintLayoutPosition& src) = default;
- PrintLayoutPosition(PrintLayoutPosition&& src) = delete;
+ PrintLayoutPosition(PrintLayoutPosition&& src) = default;
PrintLayoutPosition& operator=(const PrintLayoutPosition& src) = default;
- PrintLayoutPosition& operator=(PrintLayoutPosition&& src) = delete;
+ PrintLayoutPosition& operator=(PrintLayoutPosition&& src) = default;
bool operator==(const PrintLayoutPosition& src) const;
diff --git a/glom/libglom/data_structure/layout/layoutitem_button.h
b/glom/libglom/data_structure/layout/layoutitem_button.h
index 085c26a..c6155ae 100644
--- a/glom/libglom/data_structure/layout/layoutitem_button.h
+++ b/glom/libglom/data_structure/layout/layoutitem_button.h
@@ -33,9 +33,9 @@ public:
LayoutItem_Button();
LayoutItem_Button(const LayoutItem_Button& src) = default;
- LayoutItem_Button(LayoutItem_Button&& src) = delete;
+ LayoutItem_Button(LayoutItem_Button&& src) = default;
LayoutItem_Button& operator=(const LayoutItem_Button& src) = default;
- LayoutItem_Button& operator=(LayoutItem_Button&& src) = delete;
+ LayoutItem_Button& operator=(LayoutItem_Button&& src) = default;
LayoutItem* clone() const override;
diff --git a/glom/libglom/data_structure/layout/layoutitem_calendarportal.h
b/glom/libglom/data_structure/layout/layoutitem_calendarportal.h
index df0486b..c1caaa7 100644
--- a/glom/libglom/data_structure/layout/layoutitem_calendarportal.h
+++ b/glom/libglom/data_structure/layout/layoutitem_calendarportal.h
@@ -32,9 +32,9 @@ public:
LayoutItem_CalendarPortal();
LayoutItem_CalendarPortal(const LayoutItem_CalendarPortal& src) = default;
- LayoutItem_CalendarPortal(LayoutItem_CalendarPortal&& src) = delete;
+ LayoutItem_CalendarPortal(LayoutItem_CalendarPortal&& src) = default;
LayoutItem_CalendarPortal& operator=(const LayoutItem_CalendarPortal& src) = default;
- LayoutItem_CalendarPortal& operator=(LayoutItem_CalendarPortal&& src) = delete;
+ LayoutItem_CalendarPortal& operator=(LayoutItem_CalendarPortal&& src) = default;
LayoutItem* clone() const override;
diff --git a/glom/libglom/data_structure/layout/layoutitem_field.h
b/glom/libglom/data_structure/layout/layoutitem_field.h
index 4248761..a06966d 100644
--- a/glom/libglom/data_structure/layout/layoutitem_field.h
+++ b/glom/libglom/data_structure/layout/layoutitem_field.h
@@ -48,9 +48,9 @@ public:
LayoutItem_Field();
LayoutItem_Field(const LayoutItem_Field& src) = default;
- LayoutItem_Field(LayoutItem_Field&& src) = delete;
+ LayoutItem_Field(LayoutItem_Field&& src) = default;
LayoutItem_Field& operator=(const LayoutItem_Field& src) = default;
- LayoutItem_Field& operator=(LayoutItem_Field&& src) = delete;
+ LayoutItem_Field& operator=(LayoutItem_Field&& src) = default;
LayoutItem* clone() const override;
diff --git a/glom/libglom/data_structure/layout/layoutitem_image.h
b/glom/libglom/data_structure/layout/layoutitem_image.h
index ca27e4c..cba14e4 100644
--- a/glom/libglom/data_structure/layout/layoutitem_image.h
+++ b/glom/libglom/data_structure/layout/layoutitem_image.h
@@ -39,9 +39,9 @@ class LayoutItem_Image
public:
LayoutItem_Image();
LayoutItem_Image(const LayoutItem_Image& src) = default;
- LayoutItem_Image(LayoutItem_Image&& src) = delete;
+ LayoutItem_Image(LayoutItem_Image&& src) = default;
LayoutItem_Image& operator=(const LayoutItem_Image& src) = default;
- LayoutItem_Image& operator=(LayoutItem_Image&& src) = delete;
+ LayoutItem_Image& operator=(LayoutItem_Image&& src) = default;
LayoutItem* clone() const override;
diff --git a/glom/libglom/data_structure/layout/layoutitem_line.h
b/glom/libglom/data_structure/layout/layoutitem_line.h
index fd53216..1ecca18 100644
--- a/glom/libglom/data_structure/layout/layoutitem_line.h
+++ b/glom/libglom/data_structure/layout/layoutitem_line.h
@@ -34,9 +34,9 @@ class LayoutItem_Line
public:
LayoutItem_Line();
LayoutItem_Line(const LayoutItem_Line& src) = default;
- LayoutItem_Line(LayoutItem_Line&& src) = delete;
+ LayoutItem_Line(LayoutItem_Line&& src) = default;
LayoutItem_Line& operator=(const LayoutItem_Line& src) = default;
- LayoutItem_Line& operator=(LayoutItem_Line&& src) = delete;
+ LayoutItem_Line& operator=(LayoutItem_Line&& src) = default;
LayoutItem* clone() const override;
diff --git a/glom/libglom/data_structure/layout/layoutitem_notebook.h
b/glom/libglom/data_structure/layout/layoutitem_notebook.h
index 5d2c6d8..9b7f189 100644
--- a/glom/libglom/data_structure/layout/layoutitem_notebook.h
+++ b/glom/libglom/data_structure/layout/layoutitem_notebook.h
@@ -37,9 +37,9 @@ public:
LayoutItem_Notebook();
LayoutItem_Notebook(const LayoutItem_Notebook& src) = default;
- LayoutItem_Notebook(LayoutItem_Notebook&& src) = delete;
+ LayoutItem_Notebook(LayoutItem_Notebook&& src) = default;
LayoutItem_Notebook& operator=(const LayoutItem_Notebook& src) = default;
- LayoutItem_Notebook& operator=(LayoutItem_Notebook&& src) = delete;
+ LayoutItem_Notebook& operator=(LayoutItem_Notebook&& src) = default;
LayoutItem* clone() const override;
diff --git a/glom/libglom/data_structure/layout/layoutitem_placeholder.h
b/glom/libglom/data_structure/layout/layoutitem_placeholder.h
index e314fcf..778d2cd 100644
--- a/glom/libglom/data_structure/layout/layoutitem_placeholder.h
+++ b/glom/libglom/data_structure/layout/layoutitem_placeholder.h
@@ -36,10 +36,10 @@ public:
LayoutItem_Placeholder();
LayoutItem_Placeholder(const LayoutItem_Placeholder& src) = default;
- LayoutItem_Placeholder(LayoutItem_Placeholder&& src) = delete;
+ LayoutItem_Placeholder(LayoutItem_Placeholder&& src) = default;
LayoutItem_Placeholder& operator=(const LayoutItem_Placeholder& src) = default;
- LayoutItem_Placeholder& operator=(LayoutItem_Placeholder&& src) = delete;
+ LayoutItem_Placeholder& operator=(LayoutItem_Placeholder&& src) = default;
/** Create a new copied instance.
* This allows us to deep-copy a list of LayoutItems.
diff --git a/glom/libglom/data_structure/layout/layoutitem_portal.h
b/glom/libglom/data_structure/layout/layoutitem_portal.h
index b2292b9..37de7d1 100644
--- a/glom/libglom/data_structure/layout/layoutitem_portal.h
+++ b/glom/libglom/data_structure/layout/layoutitem_portal.h
@@ -47,9 +47,9 @@ public:
LayoutItem_Portal();
LayoutItem_Portal(const LayoutItem_Portal& src) = default;
- LayoutItem_Portal(LayoutItem_Portal&& src) = delete;
+ LayoutItem_Portal(LayoutItem_Portal&& src) = default;
LayoutItem_Portal& operator=(const LayoutItem_Portal& src) = default;
- LayoutItem_Portal& operator=(LayoutItem_Portal&& src) = delete;
+ LayoutItem_Portal& operator=(LayoutItem_Portal&& src) = default;
LayoutItem* clone() const override;
diff --git a/glom/libglom/data_structure/layout/layoutitem_text.h
b/glom/libglom/data_structure/layout/layoutitem_text.h
index 149a01c..759e7d5 100644
--- a/glom/libglom/data_structure/layout/layoutitem_text.h
+++ b/glom/libglom/data_structure/layout/layoutitem_text.h
@@ -39,9 +39,9 @@ public:
LayoutItem_Text();
LayoutItem_Text(const LayoutItem_Text& src);
- LayoutItem_Text(LayoutItem_Text&& src) = delete;
+ LayoutItem_Text(LayoutItem_Text&& src) = default;
LayoutItem_Text& operator=(const LayoutItem_Text& src);
- LayoutItem_Text& operator=(LayoutItem_Text&& src) = delete;
+ LayoutItem_Text& operator=(LayoutItem_Text&& src) = default;
LayoutItem* clone() const override;
diff --git a/glom/libglom/data_structure/layout/layoutitem_withformatting.h
b/glom/libglom/data_structure/layout/layoutitem_withformatting.h
index 465c292..64d764c 100644
--- a/glom/libglom/data_structure/layout/layoutitem_withformatting.h
+++ b/glom/libglom/data_structure/layout/layoutitem_withformatting.h
@@ -37,9 +37,9 @@ public:
LayoutItem_WithFormatting();
LayoutItem_WithFormatting(const LayoutItem_WithFormatting& src) = default;
- LayoutItem_WithFormatting(LayoutItem_WithFormatting&& src) = delete;
+ LayoutItem_WithFormatting(LayoutItem_WithFormatting&& src) = default;
LayoutItem_WithFormatting& operator=(const LayoutItem_WithFormatting& src) = default;
- LayoutItem_WithFormatting& operator=(LayoutItem_WithFormatting&& src) = delete;
+ LayoutItem_WithFormatting& operator=(LayoutItem_WithFormatting&& src) = default;
bool operator==(const LayoutItem_WithFormatting& src) const;
diff --git a/glom/libglom/data_structure/layout/report_parts/layoutitem_fieldsummary.h
b/glom/libglom/data_structure/layout/report_parts/layoutitem_fieldsummary.h
index 967e70c..9c24c6b 100644
--- a/glom/libglom/data_structure/layout/report_parts/layoutitem_fieldsummary.h
+++ b/glom/libglom/data_structure/layout/report_parts/layoutitem_fieldsummary.h
@@ -32,9 +32,9 @@ public:
LayoutItem_FieldSummary();
LayoutItem_FieldSummary(const LayoutItem_FieldSummary& src) = default;
- LayoutItem_FieldSummary(LayoutItem_FieldSummary&& src) = delete;
+ LayoutItem_FieldSummary(LayoutItem_FieldSummary&& src) = default;
LayoutItem_FieldSummary& operator=(const LayoutItem_FieldSummary& src) = default;
- LayoutItem_FieldSummary& operator=(LayoutItem_FieldSummary&& src) = delete;
+ LayoutItem_FieldSummary& operator=(LayoutItem_FieldSummary&& src) = default;
LayoutItem* clone() const override;
diff --git a/glom/libglom/data_structure/layout/report_parts/layoutitem_footer.h
b/glom/libglom/data_structure/layout/report_parts/layoutitem_footer.h
index 5ea3d81..e2aebd5 100644
--- a/glom/libglom/data_structure/layout/report_parts/layoutitem_footer.h
+++ b/glom/libglom/data_structure/layout/report_parts/layoutitem_footer.h
@@ -36,9 +36,9 @@ public:
LayoutItem_Footer();
LayoutItem_Footer(const LayoutItem_Footer& src) = default;
- LayoutItem_Footer(LayoutItem_Footer&& src) = delete;
+ LayoutItem_Footer(LayoutItem_Footer&& src) = default;
LayoutItem_Footer& operator=(const LayoutItem_Footer& src) = default;
- LayoutItem_Footer& operator=(LayoutItem_Footer&& src) = delete;
+ LayoutItem_Footer& operator=(LayoutItem_Footer&& src) = default;
LayoutItem* clone() const override;
diff --git a/glom/libglom/data_structure/layout/report_parts/layoutitem_groupby.h
b/glom/libglom/data_structure/layout/report_parts/layoutitem_groupby.h
index 4c90e62..4a2efe1 100644
--- a/glom/libglom/data_structure/layout/report_parts/layoutitem_groupby.h
+++ b/glom/libglom/data_structure/layout/report_parts/layoutitem_groupby.h
@@ -40,9 +40,9 @@ public:
LayoutItem_GroupBy();
LayoutItem_GroupBy(const LayoutItem_GroupBy& src) = default;
- LayoutItem_GroupBy(LayoutItem_GroupBy&& src) = delete;
+ LayoutItem_GroupBy(LayoutItem_GroupBy&& src) = default;
LayoutItem_GroupBy& operator=(const LayoutItem_GroupBy& src) = default;
- LayoutItem_GroupBy& operator=(LayoutItem_GroupBy&& src) = delete;
+ LayoutItem_GroupBy& operator=(LayoutItem_GroupBy&& src) = default;
~LayoutItem_GroupBy() override;
LayoutItem* clone() const override;
diff --git a/glom/libglom/data_structure/layout/report_parts/layoutitem_header.h
b/glom/libglom/data_structure/layout/report_parts/layoutitem_header.h
index 1a7eb9f..bb93835 100644
--- a/glom/libglom/data_structure/layout/report_parts/layoutitem_header.h
+++ b/glom/libglom/data_structure/layout/report_parts/layoutitem_header.h
@@ -36,9 +36,9 @@ public:
LayoutItem_Header();
LayoutItem_Header(const LayoutItem_Header& src) = default;
- LayoutItem_Header(LayoutItem_Header&& src) = delete;
+ LayoutItem_Header(LayoutItem_Header&& src) = default;
LayoutItem_Header& operator=(const LayoutItem_Header& src) = default;
- LayoutItem_Header& operator=(LayoutItem_Header&& src) = delete;
+ LayoutItem_Header& operator=(LayoutItem_Header&& src) = default;
LayoutItem* clone() const override;
diff --git a/glom/libglom/data_structure/layout/report_parts/layoutitem_summary.h
b/glom/libglom/data_structure/layout/report_parts/layoutitem_summary.h
index 5bf9103..cb4c52e 100644
--- a/glom/libglom/data_structure/layout/report_parts/layoutitem_summary.h
+++ b/glom/libglom/data_structure/layout/report_parts/layoutitem_summary.h
@@ -34,9 +34,9 @@ public:
LayoutItem_Summary();
LayoutItem_Summary(const LayoutItem_Summary& src) = default;
- LayoutItem_Summary(const LayoutItem_Summary&& src) = delete;
+ LayoutItem_Summary(LayoutItem_Summary&&src) = default;
LayoutItem_Summary& operator=(const LayoutItem_Summary& src) = default;
- LayoutItem_Summary& operator=(LayoutItem_Summary&& src) = delete;
+ LayoutItem_Summary& operator=(LayoutItem_Summary&& src) = default;
virtual ~LayoutItem_Summary();
LayoutItem* clone() const override;
diff --git a/glom/libglom/data_structure/layout/report_parts/layoutitem_verticalgroup.h
b/glom/libglom/data_structure/layout/report_parts/layoutitem_verticalgroup.h
index 63199a0..a6f972e 100644
--- a/glom/libglom/data_structure/layout/report_parts/layoutitem_verticalgroup.h
+++ b/glom/libglom/data_structure/layout/report_parts/layoutitem_verticalgroup.h
@@ -36,9 +36,9 @@ public:
LayoutItem_VerticalGroup();
LayoutItem_VerticalGroup(const LayoutItem_VerticalGroup& src) = default;
- LayoutItem_VerticalGroup(LayoutItem_VerticalGroup&& src) = delete;
+ LayoutItem_VerticalGroup(LayoutItem_VerticalGroup&& src) = default;
LayoutItem_VerticalGroup& operator=(const LayoutItem_VerticalGroup& src) = default;
- LayoutItem_VerticalGroup& operator=(LayoutItem_VerticalGroup&& src) = delete;
+ LayoutItem_VerticalGroup& operator=(LayoutItem_VerticalGroup&& src) = default;
LayoutItem* clone() const override;
diff --git a/glom/libglom/data_structure/layout/static_text.h
b/glom/libglom/data_structure/layout/static_text.h
index fdbcd23..54f0d59 100644
--- a/glom/libglom/data_structure/layout/static_text.h
+++ b/glom/libglom/data_structure/layout/static_text.h
@@ -35,9 +35,9 @@ public:
StaticText();
StaticText(const StaticText& src) = default;
- StaticText(StaticText&& src) = delete;
+ StaticText(StaticText&& src) = default;
StaticText& operator=(const StaticText& src) = default;
- StaticText& operator=(StaticText&& src) = delete;
+ StaticText& operator=(StaticText&& src) = default;
bool operator==(const StaticText& src) const;
};
diff --git a/glom/libglom/data_structure/layout/usesrelationship.h
b/glom/libglom/data_structure/layout/usesrelationship.h
index 4bb0a38..0fa09d7 100644
--- a/glom/libglom/data_structure/layout/usesrelationship.h
+++ b/glom/libglom/data_structure/layout/usesrelationship.h
@@ -39,9 +39,9 @@ public:
UsesRelationship();
UsesRelationship(const UsesRelationship& src) = default;
- UsesRelationship(UsesRelationship&& src) = delete;
+ UsesRelationship(UsesRelationship&& src) = default;
UsesRelationship& operator=(const UsesRelationship& src) = default;
- UsesRelationship& operator=(UsesRelationship&& src) = delete;
+ UsesRelationship& operator=(UsesRelationship&& src) = default;
bool operator==(const UsesRelationship& src) const;
diff --git a/glom/libglom/data_structure/numeric_format.h b/glom/libglom/data_structure/numeric_format.h
index 5eece7f..0746729 100644
--- a/glom/libglom/data_structure/numeric_format.h
+++ b/glom/libglom/data_structure/numeric_format.h
@@ -31,10 +31,10 @@ class NumericFormat
public:
NumericFormat();
NumericFormat(const NumericFormat& src) = default;
- NumericFormat(NumericFormat&& src) = delete;
+ NumericFormat(NumericFormat&& src) = default;
NumericFormat& operator=(const NumericFormat& src) = default;
- NumericFormat& operator=(NumericFormat&& src) = delete;
+ NumericFormat& operator=(NumericFormat&& src) = default;
bool operator==(const NumericFormat& src) const;
bool operator!=(const NumericFormat& src) const;
diff --git a/glom/libglom/data_structure/print_layout.h b/glom/libglom/data_structure/print_layout.h
index 43cec22..36b519f 100644
--- a/glom/libglom/data_structure/print_layout.h
+++ b/glom/libglom/data_structure/print_layout.h
@@ -33,9 +33,9 @@ class PrintLayout : public TranslatableItem
public:
PrintLayout();
PrintLayout(const PrintLayout& src) = default;
- PrintLayout(PrintLayout&& src) = delete;
+ PrintLayout(PrintLayout&& src) = default;
PrintLayout& operator=(const PrintLayout& src) = default;
- PrintLayout& operator=(PrintLayout&& src) = delete;
+ PrintLayout& operator=(PrintLayout&& src) = default;
bool get_show_table_title() const;
void set_show_table_title(bool show_table_title = true);
diff --git a/glom/libglom/data_structure/relationship.h b/glom/libglom/data_structure/relationship.h
index 2b9bc7a..2c64941 100644
--- a/glom/libglom/data_structure/relationship.h
+++ b/glom/libglom/data_structure/relationship.h
@@ -35,10 +35,10 @@ class Relationship
public:
Relationship();
Relationship(const Relationship& src) = default;
- Relationship(Relationship&& src) = delete;
+ Relationship(Relationship&& src) = default;
Relationship& operator=(const Relationship& src) = default;
- Relationship& operator=(Relationship&& src) = delete;
+ Relationship& operator=(Relationship&& src) = default;
bool operator==(const Relationship& src) const;
diff --git a/glom/libglom/data_structure/report.h b/glom/libglom/data_structure/report.h
index d0a0de1..7c17132 100644
--- a/glom/libglom/data_structure/report.h
+++ b/glom/libglom/data_structure/report.h
@@ -33,9 +33,9 @@ class Report : public TranslatableItem
public:
Report();
Report(const Report& src) = default;
- Report(Report&& src) = delete;
+ Report(Report&& src) = default;
Report& operator=(const Report& src) = default;
- Report& operator=(Report&& src) = delete;
+ Report& operator=(Report&& src) = default;
bool get_show_table_title() const;
void set_show_table_title(bool show_table_title = true);
diff --git a/glom/libglom/data_structure/tableinfo.h b/glom/libglom/data_structure/tableinfo.h
index 20ccca4..b22fb8e 100644
--- a/glom/libglom/data_structure/tableinfo.h
+++ b/glom/libglom/data_structure/tableinfo.h
@@ -34,9 +34,9 @@ class TableInfo
public:
TableInfo() noexcept;
TableInfo(const TableInfo& src) = default;
- TableInfo(TableInfo&& src) = delete;
+ TableInfo(TableInfo&& src) = default;
TableInfo& operator=(const TableInfo& src) = default;
- TableInfo& operator=(TableInfo&& src) = delete;
+ TableInfo& operator=(TableInfo&& src) = default;
bool operator==(const TableInfo& src) const noexcept;
bool operator!=(const TableInfo& src) const noexcept;
diff --git a/glom/libglom/document/document.h b/glom/libglom/document/document.h
index 0421ab3..78e803a 100644
--- a/glom/libglom/document/document.h
+++ b/glom/libglom/document/document.h
@@ -590,9 +590,9 @@ private:
}
DocumentTableInfo(const DocumentTableInfo& src) = delete;
- DocumentTableInfo(DocumentTableInfo&& src) = delete;
+ DocumentTableInfo(DocumentTableInfo&& src) = default;
DocumentTableInfo& operator=(const DocumentTableInfo& src) = delete;
- DocumentTableInfo& operator=(DocumentTableInfo&& src) = delete;
+ DocumentTableInfo& operator=(DocumentTableInfo&& src) = default;
std::shared_ptr<TableInfo> m_info;
diff --git a/glom/utility_widgets/adddel/adddel.h b/glom/utility_widgets/adddel/adddel.h
index 42903f6..cc0fe91 100644
--- a/glom/utility_widgets/adddel/adddel.h
+++ b/glom/utility_widgets/adddel/adddel.h
@@ -41,9 +41,9 @@ class AddDelColumnInfo
public:
AddDelColumnInfo();
AddDelColumnInfo(const AddDelColumnInfo& src) = default;
- AddDelColumnInfo(AddDelColumnInfo&& src) = delete;
+ AddDelColumnInfo(AddDelColumnInfo&& src) = default;
AddDelColumnInfo& operator=(const AddDelColumnInfo& src) = default;
- AddDelColumnInfo& operator=(AddDelColumnInfo&& src) = delete;
+ AddDelColumnInfo& operator=(AddDelColumnInfo&& src) = default;
//If we need any more complicated style (e.g. number of decimal digits) then we will need a separate
AddDelStyle class.
enum class enumStyles
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]