diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2018-01-12 20:27:27 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2018-01-12 20:27:27 +0100 |
commit | f8558f844674c7ba541699708e95f509026c9407 (patch) | |
tree | b402baade1bf3b1bfe1cf89b3cacb275c020e44b /connectivity/source/parse/sqliterator.cxx | |
parent | 4a7fb6abcd8999d64acefb598dfe85fff042d533 (diff) |
More loplugin:cstylecast: connectivity
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: Idbefb16acae20ab137497e78c9bc5dc5634c07fe
Diffstat (limited to 'connectivity/source/parse/sqliterator.cxx')
-rw-r--r-- | connectivity/source/parse/sqliterator.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/connectivity/source/parse/sqliterator.cxx b/connectivity/source/parse/sqliterator.cxx index 86608cbcded9..066ee2eba162 100644 --- a/connectivity/source/parse/sqliterator.cxx +++ b/connectivity/source/parse/sqliterator.cxx @@ -712,7 +712,7 @@ namespace { if( _pColumnRef->count() > 1 ) { - for ( sal_Int32 i=0; i<((sal_Int32)_pColumnRef->count())-2; ++i ) + for ( sal_Int32 i=0; i<static_cast<sal_Int32>(_pColumnRef->count())-2; ++i ) _pColumnRef->getChild(i)->parseNodeToStr( _out_rTableRange, _rxConnection, nullptr, false, false ); _out_rColumnName = _pColumnRef->getChild( _pColumnRef->count()-1 )->getChild(0)->getTokenValue(); } @@ -1106,7 +1106,7 @@ namespace OUString lcl_generateParameterName( const OSQLParseNode& _rParentNode, const OSQLParseNode& _rParamNode ) { OUString sColumnName( "param" ); - const sal_Int32 nCount = (sal_Int32)_rParentNode.count(); + const sal_Int32 nCount = static_cast<sal_Int32>(_rParentNode.count()); for ( sal_Int32 i = 0; i < nCount; ++i ) { if ( _rParentNode.getChild(i) == &_rParamNode ) |