[Libreoffice-commits] .: autodoc/inc autodoc/source

Jan Holesovsky kendy at kemper.freedesktop.org
Thu Oct 6 01:19:49 PDT 2011


 autodoc/inc/ary_i/ci_text2.hxx           |    2 +-
 autodoc/source/ary_i/kernel/ci_text2.cxx |   12 ++++++++++++
 2 files changed, 13 insertions(+), 1 deletion(-)

New commits:
commit 1339a41fb01323d607b5313256f5f9702804b9eb
Author: Jan Holesovsky <kendy at suse.cz>
Date:   Thu Oct 6 10:18:13 2011 +0200

    Revert "Simplify logic to use std::vector's .empty()"
    
    This reverts commit a6a51b6a69bd14c6ad67a8e6629cf405034dd701.
    
    The commit broke the build, sorry for the push.

diff --git a/autodoc/inc/ary_i/ci_text2.hxx b/autodoc/inc/ary_i/ci_text2.hxx
index eef1d63..8e1c202 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 66702af..00a5a7e 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;


More information about the Libreoffice-commits mailing list