lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [lmi] master ba4d186 5/7: Use documented public accessors


From: Greg Chicares
Subject: [lmi-commits] [lmi] master ba4d186 5/7: Use documented public accessors instead of wx data members
Date: Sat, 24 Feb 2018 04:53:14 -0500 (EST)

branch: master
commit ba4d1862c76363db93dde4108d474056c98947bd
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>

    Use documented public accessors instead of wx data members
---
 input_sequence_entry.cpp | 2 +-
 rounding_view_editor.cpp | 2 +-
 transferor.cpp           | 4 ++--
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/input_sequence_entry.cpp b/input_sequence_entry.cpp
index 45e8e70..b449623 100644
--- a/input_sequence_entry.cpp
+++ b/input_sequence_entry.cpp
@@ -1617,7 +1617,7 @@ wxObject* InputSequenceEntryXmlHandler::DoCreateResource()
     XRC_MAKE_INSTANCE(control, InputSequenceEntry)
 
     control->Create
-        (m_parentAsWindow
+        (GetParentAsWindow()
         ,GetID()
         ,GetName()
         );
diff --git a/rounding_view_editor.cpp b/rounding_view_editor.cpp
index 7eebbca..17eeddc 100644
--- a/rounding_view_editor.cpp
+++ b/rounding_view_editor.cpp
@@ -373,7 +373,7 @@ wxObject* RoundingButtonsXmlHandler::DoCreateResource()
     XRC_MAKE_INSTANCE(control, RoundingButtons)
 
     control->Create
-        (m_parentAsWindow
+        (GetParentAsWindow()
         ,GetID()
         ,GetPosition()
         ,GetSize()
diff --git a/transferor.cpp b/transferor.cpp
index 634c60c..8de8a3e 100644
--- a/transferor.cpp
+++ b/transferor.cpp
@@ -127,7 +127,7 @@ bool Transferor::Validate(wxWindow*)
 
 bool Transferor::PerformTransfer(transfer_direction td)
 {
-    if(!m_validatorWindow)
+    if(!GetWindow())
         {
         alarum()
             << "Validator for '"
@@ -136,7 +136,7 @@ bool Transferor::PerformTransfer(transfer_direction td)
             << LMI_FLUSH
             ;
         }
-    wxWindowBase* control = m_validatorWindow;
+    wxWindowBase* control = GetWindow();
 
     wxButton         * button       ;
     wxCheckBox       * checkbox     ;



reply via email to

[Prev in Thread] Current Thread [Next in Thread]