diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-02-08 13:13:08 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-02-08 13:39:29 +0100 |
commit | b45289e48e0f354b9996e2846dd041db4a9947ce (patch) | |
tree | 353ed4a7b5daa06c29ed54bcdd08c1fc5ae5c14c /connectivity/source/commontools | |
parent | 347571a6873a4b6bce8733e476fa902830d1a644 (diff) |
loplugin:indentation in connectivity
Change-Id: I6619fcdd84a23aae975dcaa7315c7f229c63c4f1
Reviewed-on: https://gerrit.libreoffice.org/67535
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'connectivity/source/commontools')
5 files changed, 24 insertions, 24 deletions
diff --git a/connectivity/source/commontools/DateConversion.cxx b/connectivity/source/commontools/DateConversion.cxx index 95c3c0b2212d..510736cc6a3f 100644 --- a/connectivity/source/commontools/DateConversion.cxx +++ b/connectivity/source/commontools/DateConversion.cxx @@ -116,16 +116,16 @@ OUString DBTypeConversion::toSQLString(sal_Int32 eType, const Any& _rVal, if (_rVal.getValueType().getTypeClass() == css::uno::TypeClass_DOUBLE) { double nValue = 0.0; - _rVal >>= nValue; - aDateTime = DBTypeConversion::toDateTime(nValue); - bOk = true; + _rVal >>= nValue; + aDateTime = DBTypeConversion::toDateTime(nValue); + bOk = true; } else if (_rVal.getValueType().getTypeClass() == css::uno::TypeClass_STRING) { OUString sValue; - _rVal >>= sValue; - aDateTime = DBTypeConversion::toDateTime(sValue); - bOk = true; + _rVal >>= sValue; + aDateTime = DBTypeConversion::toDateTime(sValue); + bOk = true; } else bOk = _rVal >>= aDateTime; @@ -148,16 +148,16 @@ OUString DBTypeConversion::toSQLString(sal_Int32 eType, const Any& _rVal, if (_rVal.getValueType().getTypeClass() == css::uno::TypeClass_DOUBLE) { double nValue = 0.0; - _rVal >>= nValue; - aDate = DBTypeConversion::toDate(nValue); - bOk = true; + _rVal >>= nValue; + aDate = DBTypeConversion::toDate(nValue); + bOk = true; } else if (_rVal.getValueType().getTypeClass() == css::uno::TypeClass_STRING) { OUString sValue; - _rVal >>= sValue; - aDate = DBTypeConversion::toDate(sValue); - bOk = true; + _rVal >>= sValue; + aDate = DBTypeConversion::toDate(sValue); + bOk = true; } else bOk = _rVal >>= aDate; @@ -173,16 +173,16 @@ OUString DBTypeConversion::toSQLString(sal_Int32 eType, const Any& _rVal, if (_rVal.getValueType().getTypeClass() == css::uno::TypeClass_DOUBLE) { double nValue = 0.0; - _rVal >>= nValue; - aTime = DBTypeConversion::toTime(nValue); - bOk = true; + _rVal >>= nValue; + aTime = DBTypeConversion::toTime(nValue); + bOk = true; } else if (_rVal.getValueType().getTypeClass() == css::uno::TypeClass_STRING) { OUString sValue; - _rVal >>= sValue; - aTime = DBTypeConversion::toTime(sValue); - bOk = true; + _rVal >>= sValue; + aTime = DBTypeConversion::toTime(sValue); + bOk = true; } else bOk = _rVal >>= aTime; @@ -487,7 +487,7 @@ OUString DBTypeConversion::getFormattedValue(const Reference<XColumn>& xVariant, // get a value which represents the given date, relative to the null date of the formatter fValue -= toDays( rNullDate, aFormatterNullDate ); // format this value - aString = xFormatter->convertNumberToString( nKey, fValue ); + aString = xFormatter->convertNumberToString( nKey, fValue ); } } break; diff --git a/connectivity/source/commontools/FDatabaseMetaDataResultSet.cxx b/connectivity/source/commontools/FDatabaseMetaDataResultSet.cxx index e8aafb3d78a2..68c71a299f4b 100644 --- a/connectivity/source/commontools/FDatabaseMetaDataResultSet.cxx +++ b/connectivity/source/commontools/FDatabaseMetaDataResultSet.cxx @@ -122,7 +122,7 @@ void ODatabaseMetaDataResultSet::disposing() ::osl::MutexGuard aGuard(m_aMutex); m_aStatement = nullptr; -m_xMetaData.clear(); + m_xMetaData.clear(); m_aRowsIter = m_aRows.end(); m_aRows.clear(); m_aRowsIter = m_aRows.end(); diff --git a/connectivity/source/commontools/TPrivilegesResultSet.cxx b/connectivity/source/commontools/TPrivilegesResultSet.cxx index bb4f92397056..6347e3e17d71 100644 --- a/connectivity/source/commontools/TPrivilegesResultSet.cxx +++ b/connectivity/source/commontools/TPrivilegesResultSet.cxx @@ -110,8 +110,8 @@ const ORowSetValue& OResultSetPrivileges::getValue(sal_Int32 columnIndex) void SAL_CALL OResultSetPrivileges::disposing() { ODatabaseMetaDataResultSet::disposing(); -m_xTables.clear(); -m_xRow.clear(); + m_xTables.clear(); + m_xRow.clear(); } sal_Bool SAL_CALL OResultSetPrivileges::next( ) diff --git a/connectivity/source/commontools/dbtools2.cxx b/connectivity/source/commontools/dbtools2.cxx index 9134f02df358..cd52c09ce6fe 100644 --- a/connectivity/source/commontools/dbtools2.cxx +++ b/connectivity/source/commontools/dbtools2.cxx @@ -939,7 +939,7 @@ sal_Int32 DBTypeConversion::convertUnicodeStringToLength( const OUString& _rSour ); } - return nLen; + return nLen; } static OUString lcl_getReportEngines() { diff --git a/connectivity/source/commontools/parameters.cxx b/connectivity/source/commontools/parameters.cxx index b3dfdd008c41..e03c6064c7cf 100644 --- a/connectivity/source/commontools/parameters.cxx +++ b/connectivity/source/commontools/parameters.cxx @@ -92,7 +92,7 @@ namespace dbtools void ParameterManager::clearAllParameterInformation() { - m_xInnerParamColumns.clear(); + m_xInnerParamColumns.clear(); if ( m_pOuterParameters.is() ) m_pOuterParameters->dispose(); m_pOuterParameters = nullptr; |