diff options
Diffstat (limited to 'UnoControls')
-rw-r--r-- | UnoControls/source/base/basecontainercontrol.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/UnoControls/source/base/basecontainercontrol.cxx b/UnoControls/source/base/basecontainercontrol.cxx index a440505149ed..a20059d100b8 100644 --- a/UnoControls/source/base/basecontainercontrol.cxx +++ b/UnoControls/source/base/basecontainercontrol.cxx @@ -309,7 +309,7 @@ Reference< XControl > SAL_CALL BaseContainerControl::getControl ( const OUString MutexGuard aGuard ( Mutex::getGlobalMutex() ); // Search for right control - for( IMPL_ControlInfo& rSearchControl : maControlInfoList ) + for( const IMPL_ControlInfo& rSearchControl : maControlInfoList ) { if ( rSearchControl.sName == rName ) { @@ -336,7 +336,7 @@ Sequence< Reference< XControl > > SAL_CALL BaseContainerControl::getControls () Reference< XControl > * pDestination = aDescriptor.getArray (); // Copy controls to sequence - for( IMPL_ControlInfo& rCopyControl : maControlInfoList ) + for( const IMPL_ControlInfo& rCopyControl : maControlInfoList ) { pDestination [ nCount++ ] = rCopyControl.xControl; } |