diff options
author | David Tardon <dtardon@redhat.com> | 2014-08-20 10:05:31 +0200 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2014-08-20 10:08:49 +0200 |
commit | 8c536baf2072295691711927e262d2341d14a3e1 (patch) | |
tree | faff20527b9a38fd0a2bdee3b5b2bae0c4a55ff5 /connectivity | |
parent | 238d6ac878fd5ebc7d5534674b5b98cdac15cf17 (diff) |
do not use obsolete OSL_VERIFY macro
Change-Id: I8efdd4933d3e47c5e086dc4a4685110390d6b6e8
Diffstat (limited to 'connectivity')
-rw-r--r-- | connectivity/source/commontools/DateConversion.cxx | 4 |
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 |