summaryrefslogtreecommitdiff
path: root/connectivity
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2014-08-20 10:05:31 +0200
committerDavid Tardon <dtardon@redhat.com>2014-08-20 10:08:49 +0200
commit8c536baf2072295691711927e262d2341d14a3e1 (patch)
treefaff20527b9a38fd0a2bdee3b5b2bae0c4a55ff5 /connectivity
parent238d6ac878fd5ebc7d5534674b5b98cdac15cf17 (diff)
do not use obsolete OSL_VERIFY macro
Change-Id: I8efdd4933d3e47c5e086dc4a4685110390d6b6e8
Diffstat (limited to 'connectivity')
-rw-r--r--connectivity/source/commontools/DateConversion.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/connectivity/source/commontools/DateConversion.cxx b/connectivity/source/commontools/DateConversion.cxx
index 37806085bfc5..373d048ab37b 100644
--- a/connectivity/source/commontools/DateConversion.cxx
+++ b/connectivity/source/commontools/DateConversion.cxx
@@ -256,8 +256,8 @@ void DBTypeConversion::setValue(const Reference<XColumnUpdate>& xVariant,
if(xFormatTypes.is())
{
css::lang::Locale loc;
- OSL_VERIFY(xFormats->getByKey(nKeyToUse)->getPropertyValue("Locale") >>= loc);
- nStandardKey = xFormatTypes->getStandardIndex(loc);
+ if (xFormats->getByKey(nKeyToUse)->getPropertyValue("Locale") >>= loc)
+ nStandardKey = xFormatTypes->getStandardIndex(loc);
}
// Why use nStandardKey rather than nKeyToUse here? Don't know, but "it was always like that".
// Previously had hardcoded 0 instead of nStandardKey, which led to problems with dates