[glom] Base_DB: Use constructor initializer lists.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glom] Base_DB: Use constructor initializer lists.
- Date: Thu, 5 Nov 2015 22:20:46 +0000 (UTC)
commit 98455c311a7c19d1b1c483faa756c32c8713a4b5
Author: Murray Cumming <murrayc murrayc com>
Date: Tue Nov 3 17:04:45 2015 +0100
Base_DB: Use constructor initializer lists.
glom/base_db.h | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/glom/base_db.h b/glom/base_db.h
index 51980dd..1e47fd8 100644
--- a/glom/base_db.h
+++ b/glom/base_db.h
@@ -138,9 +138,9 @@ protected:
}
FieldInRecord(const std::shared_ptr<const LayoutItem_Field>& layout_item, const Glib::ustring&
parent_table_name, const std::shared_ptr<const Field>& parent_key, const Gnome::Gda::Value& key_value, const
Document& document)
- : m_key_value(key_value)
+ : m_field(layout_item->get_full_field_details()),
+ m_key_value(key_value)
{
- m_field = layout_item->get_full_field_details();
m_table_name = layout_item->get_table_used(parent_table_name);
//The key:
@@ -189,11 +189,11 @@ protected:
{}
LayoutFieldInRecord(const std::shared_ptr<const LayoutItem_Field>& layout_item, const Glib::ustring&
parent_table_name, const std::shared_ptr<const Field>& parent_key, const Gnome::Gda::Value& key_value)
- : m_key_value(key_value)
+ : m_table_name(parent_table_name),
+ m_field(layout_item),
+ m_key(parent_key),
+ m_key_value(key_value)
{
- m_field = layout_item;
- m_table_name = parent_table_name;
- m_key = parent_key;
}
LayoutFieldInRecord(const LayoutFieldInRecord& src) = delete;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]