diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-06-08 16:26:23 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-06-08 16:26:23 +0200 |
commit | 801b9823a0f1974517a4021b9519cfda8cda1626 (patch) | |
tree | 79cfe73b6a422d9c0fd5c5243524e2a94e435ac8 /linguistic/source/convdic.cxx | |
parent | e12fa69f6eba31ffef4c2ed848ee5a91723df094 (diff) |
loplugin:cstylecast: deal with remaining pointer casts
Change-Id: I34315c0e76ee89e456f50776ef3393dc9408e8fd
Diffstat (limited to 'linguistic/source/convdic.cxx')
-rw-r--r-- | linguistic/source/convdic.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/linguistic/source/convdic.cxx b/linguistic/source/convdic.cxx index ef899ac85276..3f7a902f602d 100644 --- a/linguistic/source/convdic.cxx +++ b/linguistic/source/convdic.cxx @@ -102,7 +102,7 @@ void ReadThroughDic( const OUString &rMainURL, ConvDicXMLImport &rImport ) //!! keep a reference until everything is done to //!! ensure the proper lifetime of the object uno::Reference < xml::sax::XDocumentHandler > xFilter( - (xml::sax::XExtendedDocumentHandler *) &rImport, UNO_QUERY ); + static_cast<xml::sax::XExtendedDocumentHandler *>(&rImport), UNO_QUERY ); // connect parser and filter xParser->setDocumentHandler( xFilter ); @@ -144,7 +144,7 @@ bool IsConvDic( const OUString &rFileURL, sal_Int16 &nLang, sal_Int16 &nConvType ConvDicXMLImport *pImport = new ConvDicXMLImport( 0 ); //!! keep a first reference to ensure the lifetime of the object !! - uno::Reference< XInterface > xRef( (document::XFilter *) pImport, UNO_QUERY ); + uno::Reference< XInterface > xRef( static_cast<document::XFilter *>(pImport), UNO_QUERY ); ReadThroughDic( rFileURL, *pImport ); // will implicitly add the entries bRes = !LinguIsUnspecified( pImport->GetLanguage()) && @@ -222,7 +222,7 @@ void ConvDic::Load() bNeedEntries = false; ConvDicXMLImport *pImport = new ConvDicXMLImport( this ); //!! keep a first reference to ensure the lifetime of the object !! - uno::Reference< XInterface > xRef( (document::XFilter *) pImport, UNO_QUERY ); + uno::Reference< XInterface > xRef( static_cast<document::XFilter *>(pImport), UNO_QUERY ); ReadThroughDic( aMainURL, *pImport ); // will implicitly add the entries bIsModified = false; } @@ -266,7 +266,7 @@ void ConvDic::Save() ConvDicXMLExport *pExport = new ConvDicXMLExport( *this, aMainURL, xDocHandler ); //!! keep a first(!) reference until everything is done to //!! ensure the proper lifetime of the object - uno::Reference< document::XFilter > aRef( (document::XFilter *) pExport ); + uno::Reference< document::XFilter > aRef( static_cast<document::XFilter *>(pExport) ); bool bRet = pExport->Export(); // write entries to file DBG_ASSERT( !pStream->GetError(), "I/O error while writing to stream" ); if (bRet) |