summaryrefslogtreecommitdiff
path: root/basctl
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-08-19 15:09:56 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-08-19 19:27:56 +0200
commit16da5e2cc9add87aa44783af270f63de01e7ced4 (patch)
tree618685108d80e908e36176357260688ab9ba67b0 /basctl
parentc31fa068ad430746d47ce53e2321ac3302dcb8bb (diff)
loplugin:constvars in accessibility..basegfx
Change-Id: Id6a0b48c3440be394419e87bd7a4f63bd0a1e758 Reviewed-on: https://gerrit.libreoffice.org/77721 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'basctl')
-rw-r--r--basctl/source/accessibility/accessibledialogwindow.cxx10
-rw-r--r--basctl/source/basicide/bastype3.cxx4
-rw-r--r--basctl/source/basicide/breakpoint.cxx2
3 files changed, 8 insertions, 8 deletions
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 );