[glom] Box_Data_ManyRecords: Remove unimplemented set_read_only().



commit 950eb68ed53e5fb0a40a1177b6ac8ca7bfc74650
Author: Murray Cumming <murrayc murrayc com>
Date:   Fri Oct 30 13:25:04 2015 +0100

    Box_Data_ManyRecords: Remove unimplemented set_read_only().
    
    cppcheck found a variable in both this and a derived class.

 glom/mode_data/box_data_list.cc        |    2 +-
 glom/mode_data/box_data_list_related.h |    2 ++
 glom/mode_data/box_data_manyrecords.cc |    1 -
 glom/mode_data/box_data_manyrecords.h  |    5 -----
 4 files changed, 3 insertions(+), 7 deletions(-)
---
diff --git a/glom/mode_data/box_data_list.cc b/glom/mode_data/box_data_list.cc
index 79fcca0..7f6be53 100644
--- a/glom/mode_data/box_data_list.cc
+++ b/glom/mode_data/box_data_list.cc
@@ -33,7 +33,7 @@ namespace Glom
 {
 
 Box_Data_List::Box_Data_List()
-:  m_read_only(false)
+: m_read_only(false)
 {
   m_layout_name = "list";
 
diff --git a/glom/mode_data/box_data_list_related.h b/glom/mode_data/box_data_list_related.h
index 6664218..e8f0b73 100644
--- a/glom/mode_data/box_data_list_related.h
+++ b/glom/mode_data/box_data_list_related.h
@@ -86,6 +86,8 @@ protected:
 
   //Member widgets:
   mutable DbAddDel_WithButtons m_AddDel; //mutable because its get_ methods aren't const.
+
+  bool m_read_only;
 };
 
 } //namespace Glom
diff --git a/glom/mode_data/box_data_manyrecords.cc b/glom/mode_data/box_data_manyrecords.cc
index c680e58..54dc08a 100644
--- a/glom/mode_data/box_data_manyrecords.cc
+++ b/glom/mode_data/box_data_manyrecords.cc
@@ -34,7 +34,6 @@ namespace Glom
 {
 
 Box_Data_ManyRecords::Box_Data_ManyRecords()
-: m_read_only(false)
 {
   //We do not actually use this,
   //so it is a bug if this appears in the .glom file:
diff --git a/glom/mode_data/box_data_manyrecords.h b/glom/mode_data/box_data_manyrecords.h
index 80b7bf6..540b8ac 100644
--- a/glom/mode_data/box_data_manyrecords.h
+++ b/glom/mode_data/box_data_manyrecords.h
@@ -39,8 +39,6 @@ public:
 
   bool get_showing_multiple_records() const;
 
-  void set_read_only(bool read_only = true);
-
   //For instance, change "Open" to "Select" when used to select an ID.
   void set_open_button_title(const Glib::ustring& title);
 
@@ -63,9 +61,6 @@ protected:
   void print_layout() override;
   void print_layout_group(xmlpp::Element* node_parent, const std::shared_ptr<const LayoutGroup>& group);
 
-  bool m_read_only;
-
-
   type_signal_user_requested_details m_signal_user_requested_details;
   type_signal_record_selection_changed m_signal_record_selection_changed;
 };


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]