[glom] C++11: More default implementations.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glom] C++11: More default implementations.
- Date: Tue, 8 Nov 2016 13:45:04 +0000 (UTC)
commit e3c2d3cf87cae97b2e5b64b63c355522416fd06c
Author: Murray Cumming <murrayc murrayc com>
Date: Tue Nov 8 12:31:14 2016 +0100
C++11: More default implementations.
glom/libglom/data_structure/translatable_item.cc | 16 ----------------
glom/libglom/data_structure/translatable_item.h | 4 ++--
2 files changed, 2 insertions(+), 18 deletions(-)
---
diff --git a/glom/libglom/data_structure/translatable_item.cc
b/glom/libglom/data_structure/translatable_item.cc
index a3e6605..8fa6153 100644
--- a/glom/libglom/data_structure/translatable_item.cc
+++ b/glom/libglom/data_structure/translatable_item.cc
@@ -31,22 +31,6 @@ TranslatableItem::TranslatableItem() noexcept
{
}
-TranslatableItem::TranslatableItem(const TranslatableItem& src) noexcept
-: m_translatable_item_type(src.m_translatable_item_type),
- m_name(src.m_name),
- m_title(src.m_title),
- m_map_translations(src.m_map_translations)
-{
-}
-
-TranslatableItem::TranslatableItem(TranslatableItem&& src) noexcept
-: m_translatable_item_type(std::move(src.m_translatable_item_type)),
- m_name(std::move(src.m_name)),
- m_title(std::move(src.m_title)),
- m_map_translations(std::move(src.m_map_translations))
-{
-}
-
TranslatableItem::~TranslatableItem()
{
}
diff --git a/glom/libglom/data_structure/translatable_item.h b/glom/libglom/data_structure/translatable_item.h
index e5cf4f3..7bbf78b 100644
--- a/glom/libglom/data_structure/translatable_item.h
+++ b/glom/libglom/data_structure/translatable_item.h
@@ -33,8 +33,8 @@ class TranslatableItem
{
public:
TranslatableItem() noexcept;
- TranslatableItem(const TranslatableItem& src) noexcept;
- TranslatableItem(TranslatableItem&& src) noexcept;
+ TranslatableItem(const TranslatableItem& src) = default;
+ TranslatableItem(TranslatableItem&& src) = default;
virtual ~TranslatableItem();
TranslatableItem& operator=(const TranslatableItem& src) = default;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]