diff options
Diffstat (limited to 'stoc/source')
-rw-r--r-- | stoc/source/corereflection/crcomp.cxx | 8 | ||||
-rw-r--r-- | stoc/source/corereflection/criface.cxx | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/stoc/source/corereflection/crcomp.cxx b/stoc/source/corereflection/crcomp.cxx index b370b00adc4a..83b3aa2844c6 100644 --- a/stoc/source/corereflection/crcomp.cxx +++ b/stoc/source/corereflection/crcomp.cxx @@ -222,11 +222,11 @@ sal_Bool CompoundIdlClassImpl::isAssignableFrom( const Reference< XIdlClass > & return true; else { - const Sequence< Reference< XIdlClass > > & rSeq = xType->getSuperclasses(); - if (rSeq.hasElements()) + const Sequence< Reference< XIdlClass > > aSeq = xType->getSuperclasses(); + if (aSeq.hasElements()) { - OSL_ENSURE( rSeq.getLength() == 1, "### unexpected len of super classes!" ); - return isAssignableFrom( rSeq[0] ); + OSL_ENSURE( aSeq.getLength() == 1, "### unexpected len of super classes!" ); + return isAssignableFrom( aSeq[0] ); } } } diff --git a/stoc/source/corereflection/criface.cxx b/stoc/source/corereflection/criface.cxx index 7b35020fb67f..490c5aaa7bab 100644 --- a/stoc/source/corereflection/criface.cxx +++ b/stoc/source/corereflection/criface.cxx @@ -708,8 +708,8 @@ sal_Bool InterfaceIdlClassImpl::isAssignableFrom( const Reference< XIdlClass > & return true; else { - const Sequence< Reference< XIdlClass > > & rSeq = xType->getSuperclasses(); - if (std::any_of(rSeq.begin(), rSeq.end(), + const Sequence< Reference< XIdlClass > > aSeq = xType->getSuperclasses(); + if (std::any_of(aSeq.begin(), aSeq.end(), [this](const Reference<XIdlClass>& rType){ return isAssignableFrom(rType); })) return true; } |