Kaydet (Commit) 344f939e authored tarafından Noel Grandin's avatar Noel Grandin Kaydeden (comit) Michael Meeks

vcl: VclPtr conversion in forms

Change-Id: Ib6a84b5d52a695aca69e1fcfde6390d1059a3745
üst 36070535
...@@ -58,8 +58,14 @@ namespace frm ...@@ -58,8 +58,14 @@ namespace frm
RichTextControl::~RichTextControl( ) RichTextControl::~RichTextControl( )
{
dispose();
}
void RichTextControl::dispose()
{ {
delete m_pImpl; delete m_pImpl;
Control::dispose();
} }
......
...@@ -52,6 +52,7 @@ namespace frm ...@@ -52,6 +52,7 @@ namespace frm
); );
virtual ~RichTextControl( ); virtual ~RichTextControl( );
virtual void dispose() SAL_OVERRIDE;
/* enables the change notifications for a particular attribute /* enables the change notifications for a particular attribute
......
...@@ -146,6 +146,11 @@ namespace frm ...@@ -146,6 +146,11 @@ namespace frm
NavigationToolBar::~NavigationToolBar( ) NavigationToolBar::~NavigationToolBar( )
{
dispose();
}
void NavigationToolBar::dispose()
{ {
for ( ::std::vector< vcl::Window* >::iterator loopChildWins = m_aChildWins.begin(); for ( ::std::vector< vcl::Window* >::iterator loopChildWins = m_aChildWins.begin();
loopChildWins != m_aChildWins.end(); loopChildWins != m_aChildWins.end();
...@@ -155,6 +160,7 @@ namespace frm ...@@ -155,6 +160,7 @@ namespace frm
delete *loopChildWins; delete *loopChildWins;
} }
delete m_pToolbar; delete m_pToolbar;
vcl::Window::dispose();
} }
...@@ -658,11 +664,6 @@ namespace frm ...@@ -658,11 +664,6 @@ namespace frm
} }
RecordPositionInput::~RecordPositionInput()
{
}
void RecordPositionInput::setDispatcher( const IFeatureDispatcher* _pDispatcher ) void RecordPositionInput::setDispatcher( const IFeatureDispatcher* _pDispatcher )
{ {
m_pDispatcher = _pDispatcher; m_pDispatcher = _pDispatcher;
......
...@@ -71,6 +71,7 @@ namespace frm ...@@ -71,6 +71,7 @@ namespace frm
const ::boost::shared_ptr< const ICommandDescriptionProvider >& _pDescriptionProvider const ::boost::shared_ptr< const ICommandDescriptionProvider >& _pDescriptionProvider
); );
virtual ~NavigationToolBar( ); virtual ~NavigationToolBar( );
virtual void dispose() SAL_OVERRIDE;
/** sets the dispatcher which is to be used for the features /** sets the dispatcher which is to be used for the features
...@@ -158,7 +159,6 @@ namespace frm ...@@ -158,7 +159,6 @@ namespace frm
public: public:
RecordPositionInput( vcl::Window* _pParent ); RecordPositionInput( vcl::Window* _pParent );
virtual ~RecordPositionInput();
/** sets the dispatcher which is to be used for the features /** sets the dispatcher which is to be used for the features
*/ */
......
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