From 125ff276ae727ef5c1283e364693064a57c4f4b4 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Tue, 22 Jan 2013 16:56:36 +0000 Subject: 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 --- svx/source/unodialogs/textconversiondlgs/chinese_translationdialog.cxx | 2 -- 1 file changed, 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; ChineseTranslationDialog::ChineseTranslationDialog( Window* pParent ) : ModalDialog(pParent, "ChineseConversionDialog", "svx/ui/chineseconversiondialog.ui") - , m_pDictionaryDialog(0) { get(m_pBP_OK, "ok"); @@ -53,7 +52,6 @@ ChineseTranslationDialog::ChineseTranslationDialog( Window* pParent ) get(m_pRB_To_Simplified, "tosimplified"); get(m_pRB_To_Traditional, "totraditional"); get(m_pCB_Translate_Commonterms, "commonterms"); - FreeResource(); m_pRB_To_Simplified->SetHelpId( HID_SVX_CHINESE_TRANSLATION_RB_CONVERSION_TO_SIMPLIFIED ); m_pRB_To_Traditional->SetHelpId( HID_SVX_CHINESE_TRANSLATION_RB_CONVERSION_TO_TRADITIONAL ); -- cgit v1.2.3