diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2016-04-11 00:40:20 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2016-04-11 05:59:03 +0000 |
commit | 234f10eb26b70bb2ab412dd46d2763f3a7f555ff (patch) | |
tree | 635ef9386e5cea5dde46a4687dcf60590f4553c9 /connectivity | |
parent | 2c9f86854d58bf544b9c596f23844a0d857078ee (diff) |
Replace OUtoCStr macro
+ use SAL_INFO instead of OSL_TRACE for the impacted lines and surroundings
Change-Id: Icf12f51d68af15527ec7baf79a2d60608d849c97
Reviewed-on: https://gerrit.libreoffice.org/23975
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'connectivity')
-rw-r--r-- | connectivity/source/drivers/mork/MResultSet.cxx | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/connectivity/source/drivers/mork/MResultSet.cxx b/connectivity/source/drivers/mork/MResultSet.cxx index 96ae5e0cfafc..35cb7ffa97e0 100644 --- a/connectivity/source/drivers/mork/MResultSet.cxx +++ b/connectivity/source/drivers/mork/MResultSet.cxx @@ -33,12 +33,6 @@ #include "resource/mork_res.hrc" #include "resource/common_res.hrc" -#if OSL_DEBUG_LEVEL > 0 -# define OUtoCStr( x ) ( OUStringToOString ( (x), RTL_TEXTENCODING_ASCII_US).getStr()) -#else /* OSL_DEBUG_LEVEL */ -# define OUtoCStr( x ) ("dummy") -#endif /* OSL_DEBUG_LEVEL */ - using namespace ::comphelper; using namespace connectivity; using namespace connectivity::mork; @@ -712,12 +706,12 @@ void OResultSet::parseParameter( const OSQLParseNode* pNode, OUString& rMatchStr OSL_ENSURE( m_nParamIndex < (sal_Int32)m_aParameterRow->get().size() + 1, "More parameters than values found" ); rMatchString = (m_aParameterRow->get())[(sal_uInt16)m_nParamIndex]; #if OSL_DEBUG_LEVEL > 0 - OSL_TRACE("Prop Value : %s", OUtoCStr( rMatchString ) ); + SAL_INFO("connectivity.mork", "Prop Value: " << rMatchString); #endif } #if OSL_DEBUG_LEVEL > 0 else { - OSL_TRACE("Prop Value : Invalid ParameterRow!" ); + SAL_INFO("connectivity.mork", "Prop Value: Invalid ParameterRow!"); } #endif } @@ -746,16 +740,18 @@ void OResultSet::analyseWhereClause( const OSQLParseNode* parseT for(;aIter != xColumns->get().end();++aIter) { (*aIter)->getPropertyValue(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_NAME)) >>= aColName; - OSL_TRACE("Prop Column Name : %s", OUtoCStr( aColName ) ); +#if OSL_DEBUG_LEVEL > 0 + SAL_INFO("connectivity.mork", "Prop Column Name: " << aColName); +#endif if ( m_aParameterRow.is() ) { aParameterValue = (m_aParameterRow->get())[(sal_uInt16)i]; #if OSL_DEBUG_LEVEL > 0 - OSL_TRACE("Prop Value : %s", OUtoCStr( aParameterValue ) ); + SAL_INFO("connectivity.mork", "Prop Value: " << aParameterValue); #endif } #if OSL_DEBUG_LEVEL > 0 else { - OSL_TRACE("Prop Value : Invalid ParameterRow!" ); + SAL_INFO("connectivity.mork", "Prop Value: Invalid ParameterRow!"); } #endif i++; @@ -880,7 +876,9 @@ void OResultSet::analyseWhereClause( const OSQLParseNode* parseT if(SQL_ISRULE(pColumn,column_ref)) m_pSQLIterator->getColumnRange(pColumn,columnName,sTableRange); - OSL_TRACE("ColumnName = %s", OUtoCStr( columnName ) ); +#if OSL_DEBUG_LEVEL > 0 + SAL_INFO("connectivity.mork", "ColumnName = " << columnName); +#endif if ( SQL_ISRULE(pAtom,parameter) ) { parseParameter( pAtom, matchString ); |