diff options
author | Kevin Hunter <hunteke@earlham.edu> | 2011-10-04 18:56:18 -0400 |
---|---|---|
committer | Jan Holesovsky <kendy@suse.cz> | 2011-10-06 10:04:45 +0200 |
commit | a6a51b6a69bd14c6ad67a8e6629cf405034dd701 (patch) | |
tree | 56e29646617ded182b23eedbf9d12bf1b6a15dd5 /autodoc/source | |
parent | 06fdd1585d59b2580e8e35bba8a3295bbda28c6e (diff) |
Simplify logic to use std::vector's .empty()
No need to muck about with iterators, adding a loop, and 2 function
calls to test for empty: it's a std::vector under the hood, so use
.empty(), and inline it.
Diffstat (limited to 'autodoc/source')
-rw-r--r-- | autodoc/source/ary_i/kernel/ci_text2.cxx | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/autodoc/source/ary_i/kernel/ci_text2.cxx b/autodoc/source/ary_i/kernel/ci_text2.cxx index 00a5a7eb32fc..66702af381e3 100644 --- a/autodoc/source/ary_i/kernel/ci_text2.cxx +++ b/autodoc/source/ary_i/kernel/ci_text2.cxx @@ -76,18 +76,6 @@ DocuTex2::AddToken( DYN DocuToken & let_drToken ) } aTokens.push_back(&let_drToken); } - -bool -DocuTex2::IsEmpty() const -{ - for ( ary::inf::DocuTex2::TokenList::const_iterator - iter = aTokens.begin(); - iter != aTokens.end(); - ) - { - return false; - } - return true; } using csi::dsapi::DT_TextToken; |