summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-05-21 12:20:59 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-05-21 12:21:31 +0200
commitda2c2a3dc42540229fa2b42ab797131fe080bec7 (patch)
treee95d1050652a2731c1493a496032e9f0219b4f66 /xmloff
parentd75cdda84fb98ec616b57a3dc0606d21c2413e47 (diff)
loplugin:literaltoboolconversion
Change-Id: I4b9299ef87686fee4e2771255ed1fcbc16374db9
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/source/core/nmspmap.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmloff/source/core/nmspmap.cxx b/xmloff/source/core/nmspmap.cxx
index 78cf02744bce..c4c93425d99f 100644
--- a/xmloff/source/core/nmspmap.cxx
+++ b/xmloff/source/core/nmspmap.cxx
@@ -117,7 +117,7 @@ sal_uInt16 SvXMLNamespaceMap::AddIfKnown( const OUString& rPrefix, const OUStrin
{
sal_uInt16 nKey = GetKeyByName( rName );
- assert(XML_NAMESPACE_NONE);
+ assert(nKey != XML_NAMESPACE_NONE);
if( XML_NAMESPACE_NONE == nKey )
return XML_NAMESPACE_UNKNOWN;