summaryrefslogtreecommitdiff
path: root/cppuhelper/source/interfacecontainer.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2018-01-12 20:26:29 +0100
committerStephan Bergmann <sbergman@redhat.com>2018-01-12 20:26:29 +0100
commit71a6caf49b1805a5a9ff29fe8f928a4551aa616b (patch)
treedd2c8bf96c26d537ffedb32c5bc5f913192234d6 /cppuhelper/source/interfacecontainer.cxx
parentf6e256c4825a6d7c9d7125a4100c10f8c4de750a (diff)
More loplugin:cstylecast: cppuhelper
auto-rewrite with <https://gerrit.libreoffice.org/#/c/47798/> "Enable loplugin:cstylecast for some more cases" plus solenv/clang-format/reformat-formatted-files Change-Id: I3966d302241a52014aaad41f72924a2095ea6621
Diffstat (limited to 'cppuhelper/source/interfacecontainer.cxx')
-rw-r--r--cppuhelper/source/interfacecontainer.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/cppuhelper/source/interfacecontainer.cxx b/cppuhelper/source/interfacecontainer.cxx
index 75ae965bf813..d4d60b634d99 100644
--- a/cppuhelper/source/interfacecontainer.cxx
+++ b/cppuhelper/source/interfacecontainer.cxx
@@ -373,7 +373,7 @@ Sequence< Type > OMultiTypeInterfaceContainerHelper::getContainedTypes() const
pArray[i++] = (*iter).first;
++iter;
}
- if( (t_type2ptr::size_type)i != nSize ) {
+ if( static_cast<t_type2ptr::size_type>(i) != nSize ) {
// may be empty container, reduce the sequence to the right size
aInterfaceTypes = css::uno::Sequence< Type >( pArray, i );
}
@@ -554,7 +554,7 @@ Sequence< sal_Int32 > OMultiTypeInterfaceContainerHelperInt32::getContainedTypes
pArray[i++] = (*iter).first;
++iter;
}
- if( (t_long2ptr::size_type)i != nSize ) {
+ if( static_cast<t_long2ptr::size_type>(i) != nSize ) {
// may be empty container, reduce the sequence to the right size
aInterfaceTypes = css::uno::Sequence< sal_Int32 >( pArray, i );
}