Kaydet (Commit) 4cc2fb2d authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#1302607 Logically dead code

also

coverity#1302606 Logically dead code

Change-Id: I510f17e93f7caf5f1c35becdf6b7d626c0160b66
üst a6b6bb2a
......@@ -102,10 +102,12 @@ sal_uInt16 SvXMLNamespaceMap::Add( const OUString& rPrefix, const OUString& rNam
if( XML_NAMESPACE_UNKNOWN == nKey )
nKey = GetKeyByName( rName );
assert(XML_NAMESPACE_NONE != nKey);
#ifdef NDEBUG
if( XML_NAMESPACE_NONE == nKey )
return USHRT_MAX;
#else
assert(XML_NAMESPACE_NONE != nKey);
#endif
if ( aNameHash.find ( rPrefix ) == aNameHash.end() )
nKey = _Add( rPrefix, rName, nKey );
......@@ -117,10 +119,12 @@ sal_uInt16 SvXMLNamespaceMap::AddIfKnown( const OUString& rPrefix, const OUStrin
{
sal_uInt16 nKey = GetKeyByName( rName );
assert(nKey != XML_NAMESPACE_NONE);
#ifdef NDEBUG
if( XML_NAMESPACE_NONE == nKey )
return XML_NAMESPACE_UNKNOWN;
#else
assert(nKey != XML_NAMESPACE_NONE);
#endif
if( XML_NAMESPACE_UNKNOWN != nKey )
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment