diff options
author | Noel Grandin <noel@peralex.com> | 2015-08-11 08:41:44 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-08-11 09:48:17 +0200 |
commit | 4712396b3b6c61b7a54ca631790561eeea5ffc93 (patch) | |
tree | 5a91e02a5e7ce630c52dbd0a349df15bb7c4813d | |
parent | 4f87e9da415632f52a0b212a0005baa991e0585f (diff) |
loplugin: defaultparams
Change-Id: I906912f29448bfc72e8139546aa09525c959867f
-rw-r--r-- | compilerplugins/clang/defaultparams.cxx | 4 | ||||
-rw-r--r-- | connectivity/source/commontools/predicateinput.cxx | 8 | ||||
-rw-r--r-- | connectivity/source/parse/sqliterator.cxx | 4 | ||||
-rw-r--r-- | connectivity/source/parse/sqlnode.cxx | 2 | ||||
-rw-r--r-- | cppcanvas/source/mtfrenderer/emfplus.cxx | 2 | ||||
-rw-r--r-- | cppu/source/uno/lbenv.cxx | 2 | ||||
-rw-r--r-- | drawinglayer/source/processor3d/cutfindprocessor3d.cxx | 2 |
7 files changed, 12 insertions, 12 deletions
diff --git a/compilerplugins/clang/defaultparams.cxx b/compilerplugins/clang/defaultparams.cxx index 173cc5e11604..76cbeed2abaa 100644 --- a/compilerplugins/clang/defaultparams.cxx +++ b/compilerplugins/clang/defaultparams.cxx @@ -61,8 +61,8 @@ bool DefaultParams::VisitCallExpr(const CallExpr * callExpr) { report( DiagnosticsEngine::Warning, "not necessary to pass this argument, it defaults to the same value", - callExpr->getSourceRange().getBegin()) - << callExpr->getSourceRange(); + arg->getSourceRange().getBegin()) + << arg->getSourceRange(); report( DiagnosticsEngine::Warning, "default method parameter declaration here", diff --git a/connectivity/source/commontools/predicateinput.cxx b/connectivity/source/commontools/predicateinput.cxx index 92786f38e230..5dd5a377364e 100644 --- a/connectivity/source/commontools/predicateinput.cxx +++ b/connectivity/source/commontools/predicateinput.cxx @@ -399,7 +399,7 @@ namespace dbtools OSQLParseNode* pFuncSpecParent = pOdbcSpec->getParent(); OSL_ENSURE( pFuncSpecParent, "OPredicateInputController::getPredicateValue: an ODBC func spec node without parent?" ); if ( pFuncSpecParent ) - pFuncSpecParent->parseNodeToStr(sReturn, m_xConnection, &m_aParser.getContext(), false, true); + pFuncSpecParent->parseNodeToStr(sReturn, m_xConnection, &m_aParser.getContext(), false); } else { @@ -407,7 +407,7 @@ namespace dbtools if ( SQL_NODE_STRING == pValueNode->getNodeType() ) sReturn = pValueNode->getTokenValue(); else - pValueNode->parseNodeToStr(sReturn, m_xConnection, &m_aParser.getContext(), false, true); + pValueNode->parseNodeToStr(sReturn, m_xConnection, &m_aParser.getContext(), false); } } else @@ -428,12 +428,12 @@ namespace dbtools sReturn = pValueNode->getTokenValue(); else pValueNode->parseNodeToStr( - sReturn, m_xConnection, &m_aParser.getContext(), false, true + sReturn, m_xConnection, &m_aParser.getContext(), false ); } else pValueNode->parseNodeToStr( - sReturn, m_xConnection, &m_aParser.getContext(), false, true + sReturn, m_xConnection, &m_aParser.getContext(), false ); } else diff --git a/connectivity/source/parse/sqliterator.cxx b/connectivity/source/parse/sqliterator.cxx index 6b202c3575a4..0a2c52593816 100644 --- a/connectivity/source/parse/sqliterator.cxx +++ b/connectivity/source/parse/sqliterator.cxx @@ -333,7 +333,7 @@ void OSQLParseTreeIterator::impl_getQueryParameterColumns( const OSQLTable& _rQu break; OUString sError; - std::unique_ptr< OSQLParseNode > pSubQueryNode( const_cast< OSQLParser& >( m_rParser ).parseTree( sError, sSubQueryCommand, false ) ); + std::unique_ptr< OSQLParseNode > pSubQueryNode( const_cast< OSQLParser& >( m_rParser ).parseTree( sError, sSubQueryCommand ) ); if ( !pSubQueryNode.get() ) break; @@ -988,7 +988,7 @@ bool OSQLParseTreeIterator::traverseSelectColumnNames(const OSQLParseNode* pSele SQL_ISRULE(pColumnRef,num_value_exp) || SQL_ISRULE(pColumnRef,term))*/ { // Function call present - pColumnRef->parseNodeToStr( sColumnName, m_pImpl->m_xConnection, NULL, false, true ); + pColumnRef->parseNodeToStr( sColumnName, m_pImpl->m_xConnection, NULL, false ); // check if the column is also a parameter traverseSearchCondition(pColumnRef); // num_value_exp diff --git a/connectivity/source/parse/sqlnode.cxx b/connectivity/source/parse/sqlnode.cxx index d33502718361..97274b5ca5cc 100644 --- a/connectivity/source/parse/sqlnode.cxx +++ b/connectivity/source/parse/sqlnode.cxx @@ -666,7 +666,7 @@ bool OSQLParseNode::impl_parseTableNameNodeToString_throw( OUStringBuffer& rStri if ( bEscapeProcessing && rParam.pParser ) { OUString sError; - boost::scoped_ptr< OSQLParseNode > pSubQueryNode( rParam.pParser->parseTree( sError, sCommand, false ) ); + boost::scoped_ptr< OSQLParseNode > pSubQueryNode( rParam.pParser->parseTree( sError, sCommand ) ); if ( pSubQueryNode.get() ) { // parse the sub-select to SDBC level, too diff --git a/cppcanvas/source/mtfrenderer/emfplus.cxx b/cppcanvas/source/mtfrenderer/emfplus.cxx index 6bea2397051e..cd09430f637c 100644 --- a/cppcanvas/source/mtfrenderer/emfplus.cxx +++ b/cppcanvas/source/mtfrenderer/emfplus.cxx @@ -2326,7 +2326,7 @@ namespace cppcanvas float dx, dy, dw, dh; - ReadRectangle (rMF, dx, dy, dw, dh, false); + ReadRectangle (rMF, dx, dy, dw, dh); SAL_INFO("cppcanvas.emf", "EMF+ RectData: " << dx << "," << dy << " " << dw << "x" << dh); diff --git a/cppu/source/uno/lbenv.cxx b/cppu/source/uno/lbenv.cxx index f1da22410afa..c888910493e0 100644 --- a/cppu/source/uno/lbenv.cxx +++ b/cppu/source/uno/lbenv.cxx @@ -727,7 +727,7 @@ extern "C" void SAL_CALL uno_dumpEnvironment( if (pOEntry->mixedObject) buf.append( "mixed " ); buf.append( "object entry: nRef=" ); - buf.append( pOEntry->nRef, 10 ); + buf.append( pOEntry->nRef ); buf.append( "; oid=\"" ); buf.append( pOEntry->oid ); buf.append( '\"' ); diff --git a/drawinglayer/source/processor3d/cutfindprocessor3d.cxx b/drawinglayer/source/processor3d/cutfindprocessor3d.cxx index 3b30d3cb49cd..0daeb529cd76 100644 --- a/drawinglayer/source/processor3d/cutfindprocessor3d.cxx +++ b/drawinglayer/source/processor3d/cutfindprocessor3d.cxx @@ -184,7 +184,7 @@ namespace drawinglayer { const basegfx::B3DPoint aCutPoint(basegfx::interpolate(maFront, maBack, fCut)); - if(basegfx::tools::isInside(rPolyPolygon, aCutPoint, false)) + if(basegfx::tools::isInside(rPolyPolygon, aCutPoint)) { // #i102956# add result. Do not forget to do this in the coordinate // system the processor get started with, so use the collected |