diff options
author | Matúš Kukan <matus.kukan@collabora.com> | 2014-12-08 11:41:34 +0100 |
---|---|---|
committer | Matúš Kukan <matus.kukan@collabora.com> | 2014-12-08 12:28:40 +0100 |
commit | 848adf433a2408fd37f333b66413b94be97e1f7a (patch) | |
tree | d43b87bf20fff84b0da1e70e690470a2f89d4317 /sax | |
parent | 6d10a42d5b1690b3b1ed81d99a3a1bc9b65c30d9 (diff) |
fastparser: Redundant check after assert
Change-Id: Ibc56102831d4d36392bea4e4e088e207cef99429
Diffstat (limited to 'sax')
-rw-r--r-- | sax/source/fastparser/fastparser.cxx | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/sax/source/fastparser/fastparser.cxx b/sax/source/fastparser/fastparser.cxx index fc1f5a90ceb8..a0e99b99fe98 100644 --- a/sax/source/fastparser/fastparser.cxx +++ b/sax/source/fastparser/fastparser.cxx @@ -623,15 +623,12 @@ void FastSaxParserImpl::DefineNamespace( const OString& rPrefix, const OUString& { Entity& rEntity = getEntity(); assert(!rEntity.maNamespaceCount.empty()); // need a context! - if( !rEntity.maNamespaceCount.empty() ) - { - sal_uInt32 nOffset = rEntity.maNamespaceCount.top()++; - if( rEntity.maNamespaceDefines.size() <= nOffset ) - rEntity.maNamespaceDefines.resize( rEntity.maNamespaceDefines.size() + 64 ); + sal_uInt32 nOffset = rEntity.maNamespaceCount.top()++; + if( rEntity.maNamespaceDefines.size() <= nOffset ) + rEntity.maNamespaceDefines.resize( rEntity.maNamespaceDefines.size() + 64 ); - rEntity.maNamespaceDefines[nOffset].reset( new NamespaceDefine( rPrefix, GetNamespaceToken( namespaceURL ), namespaceURL ) ); - } + rEntity.maNamespaceDefines[nOffset].reset( new NamespaceDefine( rPrefix, GetNamespaceToken( namespaceURL ), namespaceURL ) ); } sal_Int32 FastSaxParserImpl::GetToken( const xmlChar* pName, sal_Int32 nameLen /* = 0 */ ) |