diff options
14 files changed, 27 insertions, 27 deletions
diff --git a/accessibility/source/extended/accessibletabbar.cxx b/accessibility/source/extended/accessibletabbar.cxx index 3cff71779326..cb0a0e8e80e9 100644 --- a/accessibility/source/extended/accessibletabbar.cxx +++ b/accessibility/source/extended/accessibletabbar.cxx @@ -173,7 +173,7 @@ namespace accessibility AccessibleTabBarBase::disposing(); // dispose all children - for (Reference<XAccessible>& i : m_aAccessibleChildren) + for (const Reference<XAccessible>& i : m_aAccessibleChildren) { Reference< XComponent > xComponent( i, UNO_QUERY ); if ( xComponent.is() ) diff --git a/accessibility/source/extended/accessibletabbarpagelist.cxx b/accessibility/source/extended/accessibletabbarpagelist.cxx index 2b2252944410..4f12b48422b8 100644 --- a/accessibility/source/extended/accessibletabbarpagelist.cxx +++ b/accessibility/source/extended/accessibletabbarpagelist.cxx @@ -58,7 +58,7 @@ namespace accessibility void AccessibleTabBarPageList::UpdateShowing( bool bShowing ) { - for (Reference<XAccessible>& xChild : m_aAccessibleChildren) + for (const Reference<XAccessible>& xChild : m_aAccessibleChildren) { if ( xChild.is() ) { @@ -346,7 +346,7 @@ namespace accessibility AccessibleTabBarBase::disposing(); // dispose all children - for (Reference<XAccessible>& i : m_aAccessibleChildren) + for (const Reference<XAccessible>& i : m_aAccessibleChildren) { Reference< XComponent > xComponent( i, UNO_QUERY ); if ( xComponent.is() ) diff --git a/accessibility/source/standard/accessiblemenubasecomponent.cxx b/accessibility/source/standard/accessiblemenubasecomponent.cxx index 6f0df60870e2..fc1d5764f77d 100644 --- a/accessibility/source/standard/accessiblemenubasecomponent.cxx +++ b/accessibility/source/standard/accessiblemenubasecomponent.cxx @@ -227,7 +227,7 @@ void OAccessibleMenuBaseComponent::UpdateFocused( sal_Int32 i, bool bFocused ) void OAccessibleMenuBaseComponent::UpdateVisible() { SetVisible( IsVisible() ); - for (Reference<XAccessible>& xChild : m_aAccessibleChildren) + for (const Reference<XAccessible>& xChild : m_aAccessibleChildren) { if ( xChild.is() ) { @@ -456,7 +456,7 @@ bool OAccessibleMenuBaseComponent::IsChildHighlighted() { bool bChildHighlighted = false; - for (Reference<XAccessible>& xChild : m_aAccessibleChildren) + for (const Reference<XAccessible>& xChild : m_aAccessibleChildren) { if ( xChild.is() ) { @@ -606,7 +606,7 @@ void OAccessibleMenuBaseComponent::ProcessMenuEvent( const VclMenuEvent& rVclMen m_pMenu = nullptr; // dispose all menu items - for (Reference<XAccessible>& i : m_aAccessibleChildren) + for (const Reference<XAccessible>& i : m_aAccessibleChildren) { Reference< XComponent > xComponent( i, UNO_QUERY ); if ( xComponent.is() ) @@ -650,7 +650,7 @@ void OAccessibleMenuBaseComponent::disposing() m_pMenu = nullptr; // dispose all menu items - for (Reference<XAccessible>& i : m_aAccessibleChildren) + for (const Reference<XAccessible>& i : m_aAccessibleChildren) { Reference< XComponent > xComponent( i, UNO_QUERY ); if ( xComponent.is() ) diff --git a/accessibility/source/standard/vclxaccessiblelist.cxx b/accessibility/source/standard/vclxaccessiblelist.cxx index b8f69c9506ef..af8d83ce9fe4 100644 --- a/accessibility/source/standard/vclxaccessiblelist.cxx +++ b/accessibility/source/standard/vclxaccessiblelist.cxx @@ -205,7 +205,7 @@ void VCLXAccessibleList::UpdateSelection_Impl_Acc(bool bHasDropDownList) { sal_Int32 i=0; m_nCurSelectedPos = LISTBOX_ENTRY_NOTFOUND; - for ( auto& rChild : m_aAccessibleChildren ) + for ( const auto& rChild : m_aAccessibleChildren ) { Reference< XAccessible > xHold = rChild; if ( xHold.is() ) @@ -670,7 +670,7 @@ void VCLXAccessibleList::UpdateSelection_Impl(sal_Int32) { sal_Int32 i=0; m_nCurSelectedPos = LISTBOX_ENTRY_NOTFOUND; - for ( auto& rChild : m_aAccessibleChildren ) + for ( const auto& rChild : m_aAccessibleChildren ) { Reference< XAccessible > xHold = rChild; if ( xHold.is() ) diff --git a/accessibility/source/standard/vclxaccessiblestatusbar.cxx b/accessibility/source/standard/vclxaccessiblestatusbar.cxx index 97e052253622..6dad3a0e5370 100644 --- a/accessibility/source/standard/vclxaccessiblestatusbar.cxx +++ b/accessibility/source/standard/vclxaccessiblestatusbar.cxx @@ -220,7 +220,7 @@ void VCLXAccessibleStatusBar::ProcessWindowEvent( const VclWindowEvent& rVclWind m_pStatusBar = nullptr; // dispose all children - for (Reference<XAccessible>& i : m_aAccessibleChildren) + for (const Reference<XAccessible>& i : m_aAccessibleChildren) { Reference< XComponent > xComponent( i, UNO_QUERY ); if ( xComponent.is() ) @@ -250,7 +250,7 @@ void VCLXAccessibleStatusBar::disposing() m_pStatusBar = nullptr; // dispose all children - for (Reference<XAccessible>& i : m_aAccessibleChildren) + for (const Reference<XAccessible>& i : m_aAccessibleChildren) { Reference< XComponent > xComponent( i, UNO_QUERY ); if ( xComponent.is() ) diff --git a/accessibility/source/standard/vclxaccessibletabcontrol.cxx b/accessibility/source/standard/vclxaccessibletabcontrol.cxx index bed8bb121be1..83a67b6a3571 100644 --- a/accessibility/source/standard/vclxaccessibletabcontrol.cxx +++ b/accessibility/source/standard/vclxaccessibletabcontrol.cxx @@ -57,7 +57,7 @@ VCLXAccessibleTabControl::VCLXAccessibleTabControl( VCLXWindow* pVCLXWindow ) void VCLXAccessibleTabControl::UpdateFocused() { - for (Reference<XAccessible>& xChild : m_aAccessibleChildren) + for (const Reference<XAccessible>& xChild : m_aAccessibleChildren) { if ( xChild.is() ) { @@ -234,7 +234,7 @@ void VCLXAccessibleTabControl::ProcessWindowEvent( const VclWindowEvent& rVclWin m_pTabControl = nullptr; // dispose all tab pages - for (Reference<XAccessible>& i : m_aAccessibleChildren) + for (const Reference<XAccessible>& i : m_aAccessibleChildren) { Reference< XComponent > xComponent( i, UNO_QUERY ); if ( xComponent.is() ) @@ -314,7 +314,7 @@ void VCLXAccessibleTabControl::disposing() m_pTabControl = nullptr; // dispose all tab pages - for (Reference<XAccessible>& i : m_aAccessibleChildren) + for (const Reference<XAccessible>& i : m_aAccessibleChildren) { Reference< XComponent > xComponent( i, UNO_QUERY ); if ( xComponent.is() ) diff --git a/basctl/source/accessibility/accessibledialogwindow.cxx b/basctl/source/accessibility/accessibledialogwindow.cxx index 6cd52c2a3132..8c93f667482d 100644 --- a/basctl/source/accessibility/accessibledialogwindow.cxx +++ b/basctl/source/accessibility/accessibledialogwindow.cxx @@ -118,7 +118,7 @@ AccessibleDialogWindow::~AccessibleDialogWindow() void AccessibleDialogWindow::UpdateFocused() { - for (ChildDescriptor & i : m_aAccessibleChildren) + for (const ChildDescriptor & i : m_aAccessibleChildren) { Reference< XAccessible > xChild( i.rxAccessible ); if ( xChild.is() ) @@ -135,7 +135,7 @@ void AccessibleDialogWindow::UpdateSelected() { NotifyAccessibleEvent( AccessibleEventId::SELECTION_CHANGED, Any(), Any() ); - for (ChildDescriptor & i : m_aAccessibleChildren) + for (const ChildDescriptor & i : m_aAccessibleChildren) { Reference< XAccessible > xChild( i.rxAccessible ); if ( xChild.is() ) @@ -150,7 +150,7 @@ void AccessibleDialogWindow::UpdateSelected() void AccessibleDialogWindow::UpdateBounds() { - for (ChildDescriptor & i : m_aAccessibleChildren) + for (const ChildDescriptor & i : m_aAccessibleChildren) { Reference< XAccessible > xChild( i.rxAccessible ); if ( xChild.is() ) @@ -378,7 +378,7 @@ void AccessibleDialogWindow::ProcessWindowEvent( const VclWindowEvent& rVclWindo m_pDlgEdModel = nullptr; // dispose all children - for (ChildDescriptor & i : m_aAccessibleChildren) + for (const ChildDescriptor & i : m_aAccessibleChildren) { Reference< XComponent > xComponent( i.rxAccessible, UNO_QUERY ); if ( xComponent.is() ) @@ -523,7 +523,7 @@ void AccessibleDialogWindow::disposing() m_pDlgEdModel = nullptr; // dispose all children - for (ChildDescriptor & i : m_aAccessibleChildren) + for (const ChildDescriptor & i : m_aAccessibleChildren) { Reference< XComponent > xComponent( i.rxAccessible, UNO_QUERY ); if ( xComponent.is() ) diff --git a/basctl/source/basicide/bastype3.cxx b/basctl/source/basicide/bastype3.cxx index e4944bda3f97..8e479a1308f9 100644 --- a/basctl/source/basicide/bastype3.cxx +++ b/basctl/source/basicide/bastype3.cxx @@ -295,7 +295,7 @@ SbxVariable* SbTreeListBox::FindVariable(const weld::TreeIter* pEntry) { std::reverse(aEntries.begin(), aEntries.end()); bool bDocumentObjects = false; - for (auto& pair : aEntries) + for (const auto& pair : aEntries) { Entry* pBE = pair.first; assert(pBE && "No data found in entry!"); @@ -497,7 +497,7 @@ EntryDescriptor SbTreeListBox::GetEntryDescriptor(const weld::TreeIter* pEntry) if ( !aEntries.empty() ) { std::reverse(aEntries.begin(), aEntries.end()); - for (auto& pair : aEntries) + for (const auto& pair : aEntries) { Entry* pBE = pair.first; assert(pBE && "No data found in entry!"); diff --git a/basctl/source/basicide/breakpoint.cxx b/basctl/source/basicide/breakpoint.cxx index b70be0594579..0d0347ace228 100644 --- a/basctl/source/basicide/breakpoint.cxx +++ b/basctl/source/basicide/breakpoint.cxx @@ -67,7 +67,7 @@ void BreakPointList::SetBreakPointsInBasic(SbModule* pModule) { pModule->ClearAllBP(); - for (BreakPoint& rBrk : maBreakPoints) + for (const BreakPoint& rBrk : maBreakPoints) { if ( rBrk.bEnabled ) pModule->SetBP( rBrk.nLine ); diff --git a/basegfx/source/polygon/b2dpolygonclipper.cxx b/basegfx/source/polygon/b2dpolygonclipper.cxx index d21ce300ee87..9d672b4397c0 100644 --- a/basegfx/source/polygon/b2dpolygonclipper.cxx +++ b/basegfx/source/polygon/b2dpolygonclipper.cxx @@ -796,7 +796,7 @@ namespace basegfx else { // the last triangle has not been altered, simply copy to result - for(basegfx::B2DPoint & i : stack) + for(const basegfx::B2DPoint & i : stack) aResult.append(i); } } diff --git a/basegfx/source/polygon/b2dpolygoncutandtouch.cxx b/basegfx/source/polygon/b2dpolygoncutandtouch.cxx index 9240f1e36577..0fd59291604e 100644 --- a/basegfx/source/polygon/b2dpolygoncutandtouch.cxx +++ b/basegfx/source/polygon/b2dpolygoncutandtouch.cxx @@ -411,7 +411,7 @@ namespace basegfx } // append remapped tempVector entries for edge to tempPoints for edge - for(temporaryPoint & rTempPoint : aTempPointVectorEdge) + for(const temporaryPoint & rTempPoint : aTempPointVectorEdge) { rTempPointsB.emplace_back(rTempPoint.getPoint(), nIndB, rTempPoint.getCut()); } diff --git a/basegfx/source/polygon/b2dpolypolygoncutter.cxx b/basegfx/source/polygon/b2dpolypolygoncutter.cxx index beb0136912fd..0ea1e8b9b863 100644 --- a/basegfx/source/polygon/b2dpolypolygoncutter.cxx +++ b/basegfx/source/polygon/b2dpolypolygoncutter.cxx @@ -1037,7 +1037,7 @@ namespace basegfx B2DPolyPolygonVector aResult; aResult.reserve(aInput.size()); - for(basegfx::B2DPolyPolygon & a : aInput) + for(const basegfx::B2DPolyPolygon & a : aInput) { const basegfx::B2DPolyPolygon aCandidate(prepareForPolygonOperation(a)); diff --git a/basegfx/source/polygon/b2dtrapezoid.cxx b/basegfx/source/polygon/b2dtrapezoid.cxx index 3997feed01eb..ec3d037e6aa8 100644 --- a/basegfx/source/polygon/b2dtrapezoid.cxx +++ b/basegfx/source/polygon/b2dtrapezoid.cxx @@ -424,7 +424,7 @@ namespace basegfx // there were horizontal edges. These can be excluded, but // cuts with other edges need to be solved and added before // ignoring them - for(TrDeSimpleEdge & rHorEdge : rTrDeSimpleEdges) + for(const TrDeSimpleEdge & rHorEdge : rTrDeSimpleEdges) { // get horizontal edge as candidate; prepare its range and fixed Y const B1DRange aRange(rHorEdge.getStart().getX(), rHorEdge.getEnd().getX()); diff --git a/basegfx/source/tools/systemdependentdata.cxx b/basegfx/source/tools/systemdependentdata.cxx index 61fa9dfe7826..2c1c173eff96 100644 --- a/basegfx/source/tools/systemdependentdata.cxx +++ b/basegfx/source/tools/systemdependentdata.cxx @@ -137,7 +137,7 @@ namespace basegfx SystemDependentDataHolder::~SystemDependentDataHolder() { - for(auto& candidate : maSystemDependentReferences) + for(const auto& candidate : maSystemDependentReferences) { basegfx::SystemDependentData_SharedPtr aData(candidate.second.lock()); |