summaryrefslogtreecommitdiff
path: root/sw/source/ui
diff options
context:
space:
mode:
authoros <os@openoffice.org>2009-10-30 11:57:54 +0100
committeros <os@openoffice.org>2009-10-30 11:57:54 +0100
commita6bcb431be4da90a4b5ec34575b03e00d9fc84ad (patch)
treed106795d1d63bea237b1a584a0a797f9453a9dab /sw/source/ui
parent82df3bb3882a2c284b62090394175d4a09f6f2e1 (diff)
#i106399# unsafe cast removed
Diffstat (limited to 'sw/source/ui')
-rw-r--r--sw/source/ui/dialog/uiregionsw.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/sw/source/ui/dialog/uiregionsw.cxx b/sw/source/ui/dialog/uiregionsw.cxx
index c052f90f5e60..f364f12cce03 100644
--- a/sw/source/ui/dialog/uiregionsw.cxx
+++ b/sw/source/ui/dialog/uiregionsw.cxx
@@ -1410,14 +1410,16 @@ static void lcl_ReadSections( SwWrtShell& /*rSh*/, SfxMedium& rMedium, ComboBox&
uno::Reference < embed::XStorage > xStg;
if( rMedium.IsStorage() && (xStg = rMedium.GetStorage()).is() )
{
- SvStringsDtor aArr( 10, 10 );
+ SvStrings aArr( 10, 10 );
sal_uInt32 nFormat = SotStorage::GetFormatID( xStg );
if ( nFormat == SOT_FORMATSTR_ID_STARWRITER_60 || nFormat == SOT_FORMATSTR_ID_STARWRITERGLOB_60 ||
nFormat == SOT_FORMATSTR_ID_STARWRITER_8 || nFormat == SOT_FORMATSTR_ID_STARWRITERGLOB_8)
- SwGetReaderXML()->GetSectionList( rMedium, (SvStrings&) aArr );
+ SwGetReaderXML()->GetSectionList( rMedium, aArr );
for( USHORT n = 0; n < aArr.Count(); ++n )
rBox.InsertEntry( *aArr[ n ] );
+
+ aArr.DeleteAndDestroy(0, aArr.Count());
}
}
/* -----------------21.05.99 10:16-------------------