Kaydet (Commit) b12527bf authored tarafından Caolán McNamara's avatar Caolán McNamara

Tutorial step #3 remove redundant button widget constructors

1.   It's nearly always the case that the Help button has
     no methods called on it except its ctor, i.e.
     no changes to its default behaviour, so explicit
     mention of it can be removed.
2.   Thats's often the case for the Cancel button
3.   That's occasionally the case for the OK button

Change-Id: Ic192962b2e55546cd448d7a69394ae13a743299e
üst 63065fa7
...@@ -54,8 +54,6 @@ ChineseTranslationDialog::ChineseTranslationDialog( Window* pParent ) ...@@ -54,8 +54,6 @@ ChineseTranslationDialog::ChineseTranslationDialog( Window* pParent )
, m_aPB_Editterms( this, TextConversionDlgs_ResId( PB_EDITTERMS ) ) , m_aPB_Editterms( this, TextConversionDlgs_ResId( PB_EDITTERMS ) )
, m_aFL_Bottomline( this, TextConversionDlgs_ResId( T_FL_BOTTOMLINE ) ) , m_aFL_Bottomline( this, TextConversionDlgs_ResId( T_FL_BOTTOMLINE ) )
, m_aBP_OK( this, TextConversionDlgs_ResId( PB_OK ) ) , m_aBP_OK( this, TextConversionDlgs_ResId( PB_OK ) )
, m_aBP_Cancel( this, TextConversionDlgs_ResId( PB_CANCEL ) )
, m_aBP_Help( this, TextConversionDlgs_ResId( PB_HELP ) )
, m_pDictionaryDialog(0) , m_pDictionaryDialog(0)
{ {
FreeResource(); FreeResource();
......
...@@ -65,8 +65,6 @@ private: ...@@ -65,8 +65,6 @@ private:
FixedLine m_aFL_Bottomline; FixedLine m_aFL_Bottomline;
OKButton m_aBP_OK; OKButton m_aBP_OK;
CancelButton m_aBP_Cancel;
HelpButton m_aBP_Help;
ChineseDictionaryDialog* m_pDictionaryDialog; ChineseDictionaryDialog* m_pDictionaryDialog;
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment