diff options
author | Jan Holesovsky <kendy@suse.cz> | 2011-10-06 10:18:13 +0200 |
---|---|---|
committer | Jan Holesovsky <kendy@suse.cz> | 2011-10-06 10:19:42 +0200 |
commit | 1339a41fb01323d607b5313256f5f9702804b9eb (patch) | |
tree | 3d0690e2c583235a0c8e191fdbbe3d6373fc8251 /autodoc | |
parent | e6b5c5345f25c8881f0dca33d4a7bd4262d5e01e (diff) |
Revert "Simplify logic to use std::vector's .empty()"
This reverts commit a6a51b6a69bd14c6ad67a8e6629cf405034dd701.
The commit broke the build, sorry for the push.
Diffstat (limited to 'autodoc')
-rw-r--r-- | autodoc/inc/ary_i/ci_text2.hxx | 2 | ||||
-rw-r--r-- | autodoc/source/ary_i/kernel/ci_text2.cxx | 12 |
2 files changed, 13 insertions, 1 deletions
diff --git a/autodoc/inc/ary_i/ci_text2.hxx b/autodoc/inc/ary_i/ci_text2.hxx index eef1d639a0bd..8e1c202a5636 100644 --- a/autodoc/inc/ary_i/ci_text2.hxx +++ b/autodoc/inc/ary_i/ci_text2.hxx @@ -72,7 +72,7 @@ class DocuTex2 DYN DocuToken & let_drToken ); const TokenList & Tokens() const { return aTokens; } - bool IsEmpty() const { return aTokens.empty(); } + bool IsEmpty() const; const String & TextOfFirstToken() const; String & Access_TextOfFirstToken(); diff --git a/autodoc/source/ary_i/kernel/ci_text2.cxx b/autodoc/source/ary_i/kernel/ci_text2.cxx index 66702af381e3..00a5a7eb32fc 100644 --- a/autodoc/source/ary_i/kernel/ci_text2.cxx +++ b/autodoc/source/ary_i/kernel/ci_text2.cxx @@ -76,6 +76,18 @@ 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; |