summaryrefslogtreecommitdiff
path: root/connectivity/source/commontools/DateConversion.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-09-08 18:46:11 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-09-09 07:54:05 +0200
commit0e13c94ad3615dd20d83a95efc18b99b16e074e3 (patch)
tree8e7fcbe413d0baaf511d07bedbb5561b9430a473 /connectivity/source/commontools/DateConversion.cxx
parent2beeeea4ea3a5799921674310712aa3ead9acd7a (diff)
Get rid of connectivity's diagnose_ex.h
...that rather trivially wrapped some osl/diagnose.h functionality Change-Id: I4105708488114a9c87aa415affb997a783241248
Diffstat (limited to 'connectivity/source/commontools/DateConversion.cxx')
-rw-r--r--connectivity/source/commontools/DateConversion.cxx7
1 files changed, 3 insertions, 4 deletions
diff --git a/connectivity/source/commontools/DateConversion.cxx b/connectivity/source/commontools/DateConversion.cxx
index a3e5bb8329db..46789903c6e9 100644
--- a/connectivity/source/commontools/DateConversion.cxx
+++ b/connectivity/source/commontools/DateConversion.cxx
@@ -28,7 +28,6 @@
#include <com/sun/star/beans/XPropertySet.hpp>
#include <comphelper/extract.hxx>
#include "TConnection.hxx"
-#include "diagnose_ex.h"
#include <comphelper/numbers.hxx>
#include <rtl/ustrbuf.hxx>
#include <tools/diagnose_ex.h>
@@ -131,7 +130,7 @@ OUString DBTypeConversion::toSQLString(sal_Int32 eType, const Any& _rVal, bool b
else
bOk = _rVal >>= aDateTime;
- OSL_VERIFY_RES( bOk, "DBTypeConversion::toSQLString: _rVal is not datetime!");
+ OSL_ENSURE( bOk, "DBTypeConversion::toSQLString: _rVal is not datetime!");
// check if this is really a timestamp or only a date
if ( bOk )
{
@@ -164,7 +163,7 @@ OUString DBTypeConversion::toSQLString(sal_Int32 eType, const Any& _rVal, bool b
}
else
bOk = _rVal >>= aDate;
- OSL_VERIFY_RES( bOk, "DBTypeConversion::toSQLString: _rVal is not date!");
+ OSL_ENSURE( bOk, "DBTypeConversion::toSQLString: _rVal is not date!");
if (bQuote)
aRet.append("{d '");
aRet.append(DBTypeConversion::toDateString(aDate));
@@ -191,7 +190,7 @@ OUString DBTypeConversion::toSQLString(sal_Int32 eType, const Any& _rVal, bool b
}
else
bOk = _rVal >>= aTime;
- OSL_VERIFY_RES( bOk,"DBTypeConversion::toSQLString: _rVal is not time!");
+ OSL_ENSURE( bOk,"DBTypeConversion::toSQLString: _rVal is not time!");
if (bQuote)
aRet.append("{t '");
aRet.append(DBTypeConversion::toTimeString(aTime));