diff options
author | Christian Lippka <christian.lippka@oracle.com> | 2010-12-02 23:33:09 +0100 |
---|---|---|
committer | Christian Lippka <christian.lippka@oracle.com> | 2010-12-02 23:33:09 +0100 |
commit | 045d00e69a22d56c8327e03116ce59057726d30d (patch) | |
tree | 91df041be399211dce0871df4e22b6792891715b /vcl | |
parent | c79a8e5b49efcace06ae56b00d435481cbd59c90 (diff) |
impressdefaults1: fixed compile warnings on unix
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/inc/vcl/lazydelete.hxx | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/vcl/inc/vcl/lazydelete.hxx b/vcl/inc/vcl/lazydelete.hxx index ab39147d03de..f09614cc85e0 100644 --- a/vcl/inc/vcl/lazydelete.hxx +++ b/vcl/inc/vcl/lazydelete.hxx @@ -284,10 +284,15 @@ namespace vcl void set (const ::com::sun::star::uno::Reference<I>& r_xNew ) { - ::com::sun::star::uno::Reference< ::com::sun::star::lang::XComponent> xComponent (m_xI, UNO_QUERY); - m_xI.clear(); - if (xComponent.is()) + ::com::sun::star::uno::Reference< ::com::sun::star::lang::XComponent> xComponent (m_xI, ::com::sun::star::uno::UNO_QUERY); + m_xI = r_xNew; + if (xComponent.is()) try + { xComponent->dispose(); + } + catch( Exception& ) + { + } } }; } |