summaryrefslogtreecommitdiff
path: root/extensions/source/abpilot/fieldmappingimpl.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-02-11 15:55:00 +0100
committerStephan Bergmann <sbergman@redhat.com>2016-02-11 16:06:03 +0100
commitd6eaa8d863f5bc352ce6a06c910dc3a0fd0216f7 (patch)
treedff6d7f9cadfc091e31d8d9cdf67a23473ec56e9 /extensions/source/abpilot/fieldmappingimpl.cxx
parente20316ede6978d0ace077c3f3dd5c22fea54b5dc (diff)
Work around loplugin:oncevar with --disable-dbgutil
Change-Id: I8f2a2910993609dec91e63074a5b9195a2352bb5
Diffstat (limited to 'extensions/source/abpilot/fieldmappingimpl.cxx')
-rw-r--r--extensions/source/abpilot/fieldmappingimpl.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/extensions/source/abpilot/fieldmappingimpl.cxx b/extensions/source/abpilot/fieldmappingimpl.cxx
index 4d7b07c8562a..921a126560c0 100644
--- a/extensions/source/abpilot/fieldmappingimpl.cxx
+++ b/extensions/source/abpilot/fieldmappingimpl.cxx
@@ -229,13 +229,13 @@ namespace abp
for ( ; pExistentFields != pExistentFieldsEnd; ++pExistentFields )
{
-#ifdef DBG_UTIL
- OUString sRedundantProgrammaticName;
- aFields.openNode( *pExistentFields ).getNodeValue( sProgrammaticNodeName ) >>= sRedundantProgrammaticName;
- DBG_ASSERT( sRedundantProgrammaticName == *pExistentFields,
- "fieldmapping::writeTemplateAddressFieldMapping: inconsistent config data!" );
+ SAL_WARN_IF(
+ ((aFields.openNode(*pExistentFields)
+ .getNodeValue(sProgrammaticNodeName).get<OUString>())
+ != *pExistentFields),
+ "extensions.abpilot",
+ "fieldmapping::writeTemplateAddressFieldMapping: inconsistent config data!");
// there should be a redundancy in the config data .... if this asserts, there isn't anymore!
-#endif
// do we have a new alias for the programmatic?
MapString2String::iterator aPos = aFieldAssignment.find( *pExistentFields );