From b45289e48e0f354b9996e2846dd041db4a9947ce Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 8 Feb 2019 13:13:08 +0200 Subject: loplugin:indentation in connectivity Change-Id: I6619fcdd84a23aae975dcaa7315c7f229c63c4f1 Reviewed-on: https://gerrit.libreoffice.org/67535 Tested-by: Jenkins Reviewed-by: Noel Grandin --- connectivity/source/commontools/DateConversion.cxx | 38 +++++++++++----------- 1 file changed, 19 insertions(+), 19 deletions(-) (limited to 'connectivity/source/commontools/DateConversion.cxx') 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& 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; -- cgit v1.2.3