diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-06-03 21:14:19 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-06-05 21:18:12 +0200 |
commit | 46baf01c24a936e1c5f9a30d622c88247f28a9ea (patch) | |
tree | 00f44f5b1aa6dcdef2a42b1e3e9026419a8e52e5 /cui | |
parent | f41eea85217a9179b98502d536ec0548c9e1705f (diff) |
Improved loplugin:cstylecast to reference types: cui
Change-Id: I3473b5d90b91f73e3bc30a7a7c6035f7de7657d6
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/dialogs/cuihyperdlg.cxx | 2 | ||||
-rw-r--r-- | cui/source/dialogs/hltpbase.cxx | 2 | ||||
-rw-r--r-- | cui/source/dialogs/linkdlg.cxx | 2 | ||||
-rw-r--r-- | cui/source/dialogs/pastedlg.cxx | 4 | ||||
-rw-r--r-- | cui/source/tabpages/macroass.cxx | 2 |
5 files changed, 6 insertions, 6 deletions
diff --git a/cui/source/dialogs/cuihyperdlg.cxx b/cui/source/dialogs/cuihyperdlg.cxx index 6830ff7b320b..09810b34b8b5 100644 --- a/cui/source/dialogs/cuihyperdlg.cxx +++ b/cui/source/dialogs/cuihyperdlg.cxx @@ -337,7 +337,7 @@ void SvxHpLinkDlg::SetPage ( SvxHyperlinkItem* pItem ) IconChoicePage* pPage = GetTabPage (nPageId); if(pPage) { - SfxItemSet& aPageSet = (SfxItemSet&)pPage->GetItemSet (); + SfxItemSet& aPageSet = const_cast<SfxItemSet&>(pPage->GetItemSet ()); aPageSet.Put ( *pItem ); pCurrentPage->Reset( aPageSet ); diff --git a/cui/source/dialogs/hltpbase.cxx b/cui/source/dialogs/hltpbase.cxx index 8dac3b062fbb..9c6d5c10f073 100644 --- a/cui/source/dialogs/hltpbase.cxx +++ b/cui/source/dialogs/hltpbase.cxx @@ -448,7 +448,7 @@ void SvxHyperlinkTabPageBase::Reset( const SfxItemSet& rItemSet) FillStandardDlgFields (pHyperlinkItem); // set all other fields - FillDlgFields ( (OUString&)pHyperlinkItem->GetURL() ); + FillDlgFields ( pHyperlinkItem->GetURL() ); // Store initial URL maStrInitURL = pHyperlinkItem->GetURL(); diff --git a/cui/source/dialogs/linkdlg.cxx b/cui/source/dialogs/linkdlg.cxx index da9c08262ec0..bcbc7919d9dd 100644 --- a/cui/source/dialogs/linkdlg.cxx +++ b/cui/source/dialogs/linkdlg.cxx @@ -591,7 +591,7 @@ void SvBaseLinksDlg::SetManager( LinkManager* pNewMgr ) if( pLinkMgr ) { - SvBaseLinks& rLnks = (SvBaseLinks&)pLinkMgr->GetLinks(); + SvBaseLinks& rLnks = const_cast<SvBaseLinks&>(pLinkMgr->GetLinks()); for( size_t n = 0; n < rLnks.size(); ++n ) { tools::SvRef<SvBaseLink>& rLinkRef = rLnks[ n ]; diff --git a/cui/source/dialogs/pastedlg.cxx b/cui/source/dialogs/pastedlg.cxx index c1e3f3acb98e..0b8822247d32 100644 --- a/cui/source/dialogs/pastedlg.cxx +++ b/cui/source/dialogs/pastedlg.cxx @@ -111,8 +111,8 @@ SotClipboardFormatId SvPasteObjectDialog::GetFormat( const TransferableDataHelpe ObjectLB().SetUpdateMode( false ); - DataFlavorExVector::iterator aIter( ((DataFlavorExVector&)*pFormats).begin() ), - aEnd( ((DataFlavorExVector&)*pFormats).end() ); + DataFlavorExVector::iterator aIter( const_cast<DataFlavorExVector&>(*pFormats).begin() ), + aEnd( const_cast<DataFlavorExVector&>(*pFormats).end() ); while( aIter != aEnd ) { SotClipboardFormatId nFormat = (*aIter++).mnSotId; diff --git a/cui/source/tabpages/macroass.cxx b/cui/source/tabpages/macroass.cxx index cb454389ea62..7f92f19ecece 100644 --- a/cui/source/tabpages/macroass.cxx +++ b/cui/source/tabpages/macroass.cxx @@ -198,7 +198,7 @@ void SfxMacroTabPage::ScriptChanged() bool SfxMacroTabPage::FillItemSet( SfxItemSet* rSet ) { SvxMacroItem aItem( GetWhich( aPageRg[0] ) ); - ((SvxMacroTableDtor&)aItem.GetMacroTable()) = aTbl; + const_cast<SvxMacroTableDtor&>(aItem.GetMacroTable()) = aTbl; const SfxPoolItem* pItem; if( SfxItemState::SET != GetItemSet().GetItemState( aItem.Which(), true, &pItem ) |