[Libreoffice-commits] core.git: svx/source

Stephan Bergmann sbergman at redhat.com
Sun Mar 20 12:29:39 UTC 2016


 svx/source/tbxctrls/tbcontrl.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit e7404d27face0a3566fec3ddf3f63340d6ba332b
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Sun Mar 20 13:29:06 2016 +0100

    loplugin:redundantcast
    
    Change-Id: Ic661caef5015ab0eafa812dab9f27c774b7326b5

diff --git a/svx/source/tbxctrls/tbcontrl.cxx b/svx/source/tbxctrls/tbcontrl.cxx
index 7549769..96e79d5 100644
--- a/svx/source/tbxctrls/tbcontrl.cxx
+++ b/svx/source/tbxctrls/tbcontrl.cxx
@@ -1919,7 +1919,7 @@ SvxCurrencyList_Impl::SvxCurrencyList_Impl(
     {
         m_pCurrencyLb->InsertEntry (*i);
         OUString *pFormatStr = &m_aFormatEntries[nPos];
-        m_pCurrencyLb->SetEntryData( nPos, reinterpret_cast<void*>( pFormatStr ) );
+        m_pCurrencyLb->SetEntryData( nPos, static_cast<void*>( pFormatStr ) );
         if( *pFormatStr == m_rSelectedFormat )
             nSelectedPos = nPos;
     }
@@ -2001,7 +2001,7 @@ IMPL_LINK_NOARG_TYPED(SvxCurrencyList_Impl, SelectHdl, ListBox&, void)
     if (!m_xControl.is())
         return;
 
-    OUString* pFormat = reinterpret_cast<OUString*> (
+    OUString* pFormat = static_cast<OUString*> (
         m_pCurrencyLb->GetEntryData( m_pCurrencyLb->GetSelectEntryPos() ) );
 
     assert( pFormat );


More information about the Libreoffice-commits mailing list