summaryrefslogtreecommitdiff
path: root/toolkit
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-08-20 15:54:16 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-08-20 18:39:11 +0200
commit1d4eb1be35cc393f98496883c2cb4ee89f4bcf0c (patch)
tree8b918663b9c37780d1fa42b8b1f35f363c7aa8d5 /toolkit
parent50a6041bfac60ab03ec896bd638504524853300d (diff)
loplugin:constvars in test..unotools
Change-Id: I087dc53ca5c18893974bbd9d959de56d5a4cdfa0 Reviewed-on: https://gerrit.libreoffice.org/77827 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'toolkit')
-rw-r--r--toolkit/source/awt/vclxtoolkit.cxx6
-rw-r--r--toolkit/source/controls/unocontrol.cxx2
-rw-r--r--toolkit/source/helper/btndlg.cxx4
3 files changed, 6 insertions, 6 deletions
diff --git a/toolkit/source/awt/vclxtoolkit.cxx b/toolkit/source/awt/vclxtoolkit.cxx
index b385ce385958..7ede778ef9f5 100644
--- a/toolkit/source/awt/vclxtoolkit.cxx
+++ b/toolkit/source/awt/vclxtoolkit.cxx
@@ -2068,7 +2068,7 @@ void VCLXToolkit::callTopWindowListeners(
{
css::lang::EventObject aAwtEvent(
static_cast< css::awt::XWindow * >(pWindow->GetWindowPeer()));
- for (css::uno::Reference<XInterface> & i : aListeners)
+ for (const css::uno::Reference<XInterface> & i : aListeners)
{
css::uno::Reference< css::awt::XTopWindowListener >
xListener(i, css::uno::UNO_QUERY);
@@ -2111,7 +2111,7 @@ bool VCLXToolkit::callKeyHandlers(::VclSimpleEvent const * pEvent,
pKeyEvent->GetKeyCode().GetCode(), pKeyEvent->GetCharCode(),
sal::static_int_cast< sal_Int16 >(
pKeyEvent->GetKeyCode().GetFunction()));
- for (css::uno::Reference<XInterface> & i : aHandlers)
+ for (const css::uno::Reference<XInterface> & i : aHandlers)
{
css::uno::Reference< css::awt::XKeyHandler > xHandler(
i, css::uno::UNO_QUERY);
@@ -2158,7 +2158,7 @@ void VCLXToolkit::callFocusListeners(::VclSimpleEvent const * pEvent,
static_cast< css::awt::XWindow * >(pWindow->GetWindowPeer()),
static_cast<sal_Int16>(pWindow->GetGetFocusFlags()),
xNext, false);
- for (css::uno::Reference<XInterface> & i : aListeners)
+ for (const css::uno::Reference<XInterface> & i : aListeners)
{
css::uno::Reference< css::awt::XFocusListener > xListener(
i, css::uno::UNO_QUERY);
diff --git a/toolkit/source/controls/unocontrol.cxx b/toolkit/source/controls/unocontrol.cxx
index 1881fa374bd3..17aa5d74207d 100644
--- a/toolkit/source/controls/unocontrol.cxx
+++ b/toolkit/source/controls/unocontrol.cxx
@@ -579,7 +579,7 @@ void UnoControl::ImplModelPropertiesChanged( const Sequence< PropertyChangeEvent
while ( pLangDepProp->pPropName != nullptr )
{
bool bMustBeInserted( true );
- for (PropertyValue & i : aPeerPropertiesToSet)
+ for (const PropertyValue & i : aPeerPropertiesToSet)
{
if ( i.Name.equalsAsciiL(
pLangDepProp->pPropName, pLangDepProp->nPropNameLength ))
diff --git a/toolkit/source/helper/btndlg.cxx b/toolkit/source/helper/btndlg.cxx
index 8a19c6041506..f890ddb0fd8b 100644
--- a/toolkit/source/helper/btndlg.cxx
+++ b/toolkit/source/helper/btndlg.cxx
@@ -103,7 +103,7 @@ long ButtonDialog::ImplGetButtonSize()
long nSepSize = 0;
maCtrlSize = Size( IMPL_MINSIZE_BUTTON_WIDTH, IMPL_MINSIZE_BUTTON_HEIGHT );
- for (auto & it : m_ItemList)
+ for (const auto & it : m_ItemList)
{
nSepSize += nLastSepSize;
@@ -203,7 +203,7 @@ void ButtonDialog::ImplPosControls()
IMPL_LINK( ButtonDialog, ImplClickHdl, Button*, pBtn, void )
{
- for (auto & it : m_ItemList)
+ for (const auto & it : m_ItemList)
{
if ( it->mpPushButton == pBtn )
{