From 8c536baf2072295691711927e262d2341d14a3e1 Mon Sep 17 00:00:00 2001 From: David Tardon Date: Wed, 20 Aug 2014 10:05:31 +0200 Subject: do not use obsolete OSL_VERIFY macro Change-Id: I8efdd4933d3e47c5e086dc4a4685110390d6b6e8 --- connectivity/source/commontools/DateConversion.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'connectivity/source/commontools') 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& 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 -- cgit