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/inc | |
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/inc')
-rw-r--r-- | autodoc/inc/ary_i/ci_text2.hxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/autodoc/inc/ary_i/ci_text2.hxx b/autodoc/inc/ary_i/ci_text2.hxx index 8e1c202a5636..eef1d639a0bd 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; + bool IsEmpty() const { return aTokens.empty(); } const String & TextOfFirstToken() const; String & Access_TextOfFirstToken(); |