summaryrefslogtreecommitdiff
path: root/idl/source
diff options
context:
space:
mode:
authoranfanite396 <dipamt1729@gmail.com>2023-03-09 15:00:20 +0530
committerAndreas Heinisch <andreas.heinisch@yahoo.de>2023-03-17 14:25:46 +0000
commit34f7c8cce9c16861940f403f9a633fe8b26ba4ad (patch)
tree85ae165c711ad309a4e7a998c26e42c977d8284e /idl/source
parent928957ee04c57a20bab42223b81f55a714b62d9c (diff)
tdf#145538 Use range based for loops
Change-Id: I546bbcd6de02f9a31db6dcb34b4493bd165c0661 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148527 Tested-by: Jenkins Reviewed-by: Andreas Heinisch <andreas.heinisch@yahoo.de>
Diffstat (limited to 'idl/source')
-rw-r--r--idl/source/objects/object.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/idl/source/objects/object.cxx b/idl/source/objects/object.cxx
index 8c3cfb7b28ba..ccee5c08f16c 100644
--- a/idl/source/objects/object.cxx
+++ b/idl/source/objects/object.cxx
@@ -106,9 +106,8 @@ bool SvMetaClass::TestAttribute( SvIdlDataBase & rBase, SvTokenStream & rInStm,
SAL_WARN( "idl", "new slot : " << rAttr.GetSlotId().getString() );
}
- for( size_t n = 0; n < aAttrList.size(); n++ )
+ for( const auto &pS : aAttrList )
{
- SvMetaAttribute * pS = aAttrList[n];
if( pS->GetName() == rAttr.GetName() )
{
// values have to match