summaryrefslogtreecommitdiff
path: root/connectivity/source/commontools/DateConversion.cxx
diff options
context:
space:
mode:
authorLionel Elie Mamane <lionel@mamane.lu>2014-08-20 18:33:04 +0200
committerLionel Elie Mamane <lionel@mamane.lu>2014-08-20 18:35:44 +0200
commit3ddfcd70dccd1d8312d6172014f01862cd5be1ab (patch)
tree8f669f83525d1871585d85500851284fc9eea613 /connectivity/source/commontools/DateConversion.cxx
parent73ff8a29c1d546bbe2864d714ddb9c35c1d875f4 (diff)
make debug builds fail hard on unexpected conditions
Change-Id: I0732ce65757ee29e5ad12cb576c5b64ed0edeaee
Diffstat (limited to 'connectivity/source/commontools/DateConversion.cxx')
-rw-r--r--connectivity/source/commontools/DateConversion.cxx12
1 files changed, 12 insertions, 0 deletions
diff --git a/connectivity/source/commontools/DateConversion.cxx b/connectivity/source/commontools/DateConversion.cxx
index 979884580b2f..0e31e4f1cb84 100644
--- a/connectivity/source/commontools/DateConversion.cxx
+++ b/connectivity/source/commontools/DateConversion.cxx
@@ -261,7 +261,19 @@ void DBTypeConversion::setValue(const Reference<XColumnUpdate>& xVariant,
css::lang::Locale loc;
if (xFormatProps->getPropertyValue("Locale") >>= loc)
nStandardKey = xFormatTypes->getStandardIndex(loc);
+ else
+ {
+ assert(false);
+ }
}
+ else
+ {
+ SAL_WARN("connectivity.commontools", "no format by key " << nKeyToUse);
+ }
+ }
+ else
+ {
+ assert(false);
}
// Why use nStandardKey rather than nKeyToUse here? I'm not sure, but "it was always like that".
// Previously had hardcoded 0 instead of nStandardKey, which led to problems with dates