diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-02-02 20:40:40 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-02-02 21:07:54 +0000 |
commit | cc4954c484e71d60a84b41b196a7cde37977a6cb (patch) | |
tree | 3c4a308e9d9f810ab857a5951c4349c3b0d8bfcd /sw/source/filter/html/htmlbas.cxx | |
parent | d41b8ac9e53d3cbe05bed171f27c76cc01ea742f (diff) |
seeing as it assumed it was non-null since day 0, so can we
Change-Id: I64632ecaab720c9c8d6be0b597b990b55682f296
Diffstat (limited to 'sw/source/filter/html/htmlbas.cxx')
-rw-r--r-- | sw/source/filter/html/htmlbas.cxx | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/sw/source/filter/html/htmlbas.cxx b/sw/source/filter/html/htmlbas.cxx index 33503450d5d0..e91c1c099d70 100644 --- a/sw/source/filter/html/htmlbas.cxx +++ b/sw/source/filter/html/htmlbas.cxx @@ -278,10 +278,7 @@ void SwHTMLWriter::OutBasic() SbxArray *pModules = pBasic->GetModules(); for( sal_uInt16 j=0; j<pModules->Count(); j++ ) { - const SbModule *pModule = PTR_CAST( SbModule, pModules->Get(j) ); - assert(pModule); //Wo ist das Modul? - if (!pModule) - continue; + const SbModule &rModule = dynamic_cast<const SbModule&>(*pModules->Get(j)); OUString sLang(SVX_MACRO_LANGUAGE_STARBASIC); ScriptType eType = STARBASIC; @@ -302,9 +299,9 @@ void SwHTMLWriter::OutBasic() .WriteCharPtr( "\">" ); } - const OUString& rModName = pModule->GetName(); + const OUString& rModName = rModule.GetName(); Strm().WriteCharPtr( SAL_NEWLINE_STRING ); // nicht einruecken! - HTMLOutFuncs::OutScript( Strm(), GetBaseURL(), pModule->GetSource(), + HTMLOutFuncs::OutScript( Strm(), GetBaseURL(), rModule.GetSource(), sLang, eType, aEmptyOUStr, &rLibName, &rModName, eDestEnc, &aNonConvertableCharacters ); |