diff options
author | Philipp Lohmann <pl@openoffice.org> | 2009-05-25 15:12:27 +0000 |
---|---|---|
committer | Philipp Lohmann <pl@openoffice.org> | 2009-05-25 15:12:27 +0000 |
commit | 708bbabd2b9c99488ec128278b0a79d358c811cc (patch) | |
tree | 1d4a1970a5c5fd57d834e90f5d43c0ae8c410222 /vcl/source/window/arrange.cxx | |
parent | ea23b7444553505a98f0cf9258631e45884303ec (diff) |
fix some warnings
Diffstat (limited to 'vcl/source/window/arrange.cxx')
-rw-r--r-- | vcl/source/window/arrange.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/vcl/source/window/arrange.cxx b/vcl/source/window/arrange.cxx index d52b5e813f74..6aae74919dad 100644 --- a/vcl/source/window/arrange.cxx +++ b/vcl/source/window/arrange.cxx @@ -65,7 +65,7 @@ RowOrColumn::~RowOrColumn() WindowArranger* RowOrColumn::getChild( size_t i_nIndex ) const { - return i_nIndex < m_aElements.size() ? m_aElements[i_nIndex].m_pChild : NULL; + return i_nIndex < m_aElements.size() ? m_aElements[i_nIndex].m_pChild.get() : NULL; } Window* RowOrColumn::getWindow( size_t i_nIndex ) const @@ -274,7 +274,7 @@ void RowOrColumn::remove( WindowArranger* i_pChild ) for( std::vector< WindowArranger::Element >::iterator it = m_aElements.begin(); it != m_aElements.end(); ++it ) { - if( it->m_pChild == i_pChild ) + if( it->m_pChild.get() == i_pChild ) { m_aElements.erase( it ); return; @@ -327,8 +327,8 @@ void Indenter::setWindow( Window* i_pWindow ) void Indenter::setChild( WindowArranger* i_pChild ) { - OSL_VERIFY( (m_aElement.m_pElement == 0 && m_aElement.m_pChild == 0) || i_pChild == 0 ); - m_aElement.m_pChild = i_pChild; + OSL_VERIFY( (m_aElement.m_pElement == 0 && m_aElement.m_pChild == 0 ) || i_pChild == 0 ); + m_aElement.m_pChild.reset( i_pChild ); } void Indenter::setParentWindow( Window* i_pNewParent ) |