diff options
author | Lionel Elie Mamane <lionel@mamane.lu> | 2015-01-28 21:10:53 +0100 |
---|---|---|
committer | Lionel Elie Mamane <lionel@mamane.lu> | 2015-01-28 21:16:13 +0100 |
commit | bec15074ae8eca9ff7deb795aae0e7a2f9789aaf (patch) | |
tree | aa2dba62f95fd7846585f9c6ce2b25b8a606191e /include/connectivity | |
parent | not all OrCriteria have three children (diff) | |
download | core-bec15074ae8eca9ff7deb795aae0e7a2f9789aaf.tar.gz core-bec15074ae8eca9ff7deb795aae0e7a2f9789aaf.zip |
That is well worth an assert
The exception thrown by at() is not treated meaningfully anyway.
Change-Id: I8c243541271d7da76b2a9b102e058b5f2d1ad6d3
Diffstat (limited to 'include/connectivity')
-rw-r--r-- | include/connectivity/sqlnode.hxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/include/connectivity/sqlnode.hxx b/include/connectivity/sqlnode.hxx index bf7f476d27fb..b6c6234a7c62 100644 --- a/include/connectivity/sqlnode.hxx +++ b/include/connectivity/sqlnode.hxx @@ -446,10 +446,9 @@ namespace connectivity inline OSQLParseNode* OSQLParseNode::getChild(sal_uInt32 nPos) const { - OSL_ENSURE(nPos < m_aChildren.size(), "Invalid Position"); + assert(nPos < m_aChildren.size()); - // return m_aChildren[nPos]; - return m_aChildren.at(nPos); + return m_aChildren[nPos]; } // utilities to query for a specific rule, token or punctuation |