summaryrefslogtreecommitdiff
path: root/connectivity/source/commontools/DateConversion.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-08-31 08:04:12 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-08-31 08:04:12 +0200
commit7bff36d45d946abe40bb7a642165a54d289e11c1 (patch)
treebaaaf5d94bdda6867f14b0aa4fbea5737583850a /connectivity/source/commontools/DateConversion.cxx
parentb03b8c8c0ccf642efd706267a3d232d2c3de3850 (diff)
loplugin:stringconstant: OUStringBuffer: appendAscii -> append
Change-Id: I68b02ad101c4c2165b4618ed5d97cbffc2c43d2d
Diffstat (limited to 'connectivity/source/commontools/DateConversion.cxx')
-rw-r--r--connectivity/source/commontools/DateConversion.cxx22
1 files changed, 11 insertions, 11 deletions
diff --git a/connectivity/source/commontools/DateConversion.cxx b/connectivity/source/commontools/DateConversion.cxx
index ffcc94112d17..a3e5bb8329db 100644
--- a/connectivity/source/commontools/DateConversion.cxx
+++ b/connectivity/source/commontools/DateConversion.cxx
@@ -63,9 +63,9 @@ OUString DBTypeConversion::toSQLString(sal_Int32 eType, const Any& _rVal, bool b
if (_rVal.getValueType().getTypeClass() == ::com::sun::star::uno::TypeClass_BOOLEAN)
{
if (::cppu::any2bool(_rVal))
- aRet.appendAscii("1");
+ aRet.append("1");
else
- aRet.appendAscii("0");
+ aRet.append("0");
}
else
{
@@ -78,7 +78,7 @@ OUString DBTypeConversion::toSQLString(sal_Int32 eType, const Any& _rVal, bool b
case DataType::VARCHAR:
case DataType::LONGVARCHAR:
if (bQuote)
- aRet.appendAscii("'");
+ aRet.append("'");
{
OUString aTemp;
_rxTypeConverter->convertToSimpleType(_rVal, TypeClass_STRING) >>= aTemp;
@@ -96,7 +96,7 @@ OUString DBTypeConversion::toSQLString(sal_Int32 eType, const Any& _rVal, bool b
aRet.append(aTemp);
}
if (bQuote)
- aRet.appendAscii("'");
+ aRet.append("'");
break;
case DataType::REAL:
case DataType::DOUBLE:
@@ -136,10 +136,10 @@ OUString DBTypeConversion::toSQLString(sal_Int32 eType, const Any& _rVal, bool b
if ( bOk )
{
if (bQuote)
- aRet.appendAscii("{ts '");
+ aRet.append("{ts '");
aRet.append(DBTypeConversion::toDateTimeString(aDateTime));
if (bQuote)
- aRet.appendAscii("'}");
+ aRet.append("'}");
break;
}
break;
@@ -166,10 +166,10 @@ OUString DBTypeConversion::toSQLString(sal_Int32 eType, const Any& _rVal, bool b
bOk = _rVal >>= aDate;
OSL_VERIFY_RES( bOk, "DBTypeConversion::toSQLString: _rVal is not date!");
if (bQuote)
- aRet.appendAscii("{d '");
+ aRet.append("{d '");
aRet.append(DBTypeConversion::toDateString(aDate));
if (bQuote)
- aRet.appendAscii("'}");
+ aRet.append("'}");
} break;
case DataType::TIME:
{
@@ -193,10 +193,10 @@ OUString DBTypeConversion::toSQLString(sal_Int32 eType, const Any& _rVal, bool b
bOk = _rVal >>= aTime;
OSL_VERIFY_RES( bOk,"DBTypeConversion::toSQLString: _rVal is not time!");
if (bQuote)
- aRet.appendAscii("{t '");
+ aRet.append("{t '");
aRet.append(DBTypeConversion::toTimeString(aTime));
if (bQuote)
- aRet.appendAscii("'}");
+ aRet.append("'}");
} break;
}
}
@@ -206,7 +206,7 @@ OUString DBTypeConversion::toSQLString(sal_Int32 eType, const Any& _rVal, bool b
}
}
else
- aRet.appendAscii(" NULL ");
+ aRet.append(" NULL ");
return aRet.makeStringAndClear();
}