summaryrefslogtreecommitdiff
path: root/connectivity/source/commontools/DateConversion.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-02-08 13:13:08 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-02-08 13:39:29 +0100
commitb45289e48e0f354b9996e2846dd041db4a9947ce (patch)
tree353ed4a7b5daa06c29ed54bcdd08c1fc5ae5c14c /connectivity/source/commontools/DateConversion.cxx
parent347571a6873a4b6bce8733e476fa902830d1a644 (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/DateConversion.cxx')
-rw-r--r--connectivity/source/commontools/DateConversion.cxx38
1 files changed, 19 insertions, 19 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;