diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-01-22 16:56:36 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-01-22 16:57:44 +0000 |
commit | 125ff276ae727ef5c1283e364693064a57c4f4b4 (patch) | |
tree | bfb4a624feaec2720b6af13ea02e36050fcbf32e | |
parent | c22bdc3cc47c769dd1e1c59103e59b5f6762a065 (diff) |
Tutorial step #7 remove FreeResource
1. Remove the call to FreeResource, the dialog is no
long resource based, so it will crash otherwise
2. make dev-install, cross fingers, launch app
and dialog
3. launch under gdb if it crashes, typically asserts indicate
typos in widget names or mismatched widget types
Change-Id: I50df1b5d73e904c8d64feb06f23a9331340e40af
-rw-r--r-- | svx/source/unodialogs/textconversiondlgs/chinese_translationdialog.cxx | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/svx/source/unodialogs/textconversiondlgs/chinese_translationdialog.cxx b/svx/source/unodialogs/textconversiondlgs/chinese_translationdialog.cxx index 9f3462da1565..34c11fa12d9b 100644 --- a/svx/source/unodialogs/textconversiondlgs/chinese_translationdialog.cxx +++ b/svx/source/unodialogs/textconversiondlgs/chinese_translationdialog.cxx | |||
@@ -45,7 +45,6 @@ using namespace ::com::sun::star::uno; | |||
45 | 45 | ||
46 | ChineseTranslationDialog::ChineseTranslationDialog( Window* pParent ) | 46 | ChineseTranslationDialog::ChineseTranslationDialog( Window* pParent ) |
47 | : ModalDialog(pParent, "ChineseConversionDialog", "svx/ui/chineseconversiondialog.ui") | 47 | : ModalDialog(pParent, "ChineseConversionDialog", "svx/ui/chineseconversiondialog.ui") |
48 | |||
49 | , m_pDictionaryDialog(0) | 48 | , m_pDictionaryDialog(0) |
50 | { | 49 | { |
51 | get(m_pBP_OK, "ok"); | 50 | get(m_pBP_OK, "ok"); |
@@ -53,7 +52,6 @@ ChineseTranslationDialog::ChineseTranslationDialog( Window* pParent ) | |||
53 | get(m_pRB_To_Simplified, "tosimplified"); | 52 | get(m_pRB_To_Simplified, "tosimplified"); |
54 | get(m_pRB_To_Traditional, "totraditional"); | 53 | get(m_pRB_To_Traditional, "totraditional"); |
55 | get(m_pCB_Translate_Commonterms, "commonterms"); | 54 | get(m_pCB_Translate_Commonterms, "commonterms"); |
56 | FreeResource(); | ||
57 | 55 | ||
58 | m_pRB_To_Simplified->SetHelpId( HID_SVX_CHINESE_TRANSLATION_RB_CONVERSION_TO_SIMPLIFIED ); | 56 | m_pRB_To_Simplified->SetHelpId( HID_SVX_CHINESE_TRANSLATION_RB_CONVERSION_TO_SIMPLIFIED ); |
59 | m_pRB_To_Traditional->SetHelpId( HID_SVX_CHINESE_TRANSLATION_RB_CONVERSION_TO_TRADITIONAL ); | 57 | m_pRB_To_Traditional->SetHelpId( HID_SVX_CHINESE_TRANSLATION_RB_CONVERSION_TO_TRADITIONAL ); |