[Kde-bindings] [smokegen/KDE/4.14] parser: Remove the +1 in ::size()

Albert Astals Cid aacid at kde.org
Mon Sep 15 17:53:37 UTC 2014

Git commit 536c0740ce26beb71f23c59fe3e2526fa2973268 by Albert Astals Cid.
Committed on 15/09/2014 at 17:53.
Pushed by aacid into branch 'KDE/4.14'.

Remove the +1 in ::size()

I don't see a reason for it and it fixes the crashes in jenkins so i'm going to commit it

CCMAIL: arno at arnorehn.de
CCMAIL: kde-bindings at kde.org

M  +1    -1    parser/parsesession.cpp


diff --git a/parser/parsesession.cpp b/parser/parsesession.cpp
index e97f9c4..a67b9c1 100644
--- a/parser/parsesession.cpp
+++ b/parser/parsesession.cpp
@@ -59,7 +59,7 @@ QPair<rpp::Anchor, uint> ParseSession::positionAndSpaceAt(std::size_t offset, bo
 std::size_t ParseSession::size() const
-  return m_contents.size() + 1;
+  return m_contents.size();
  uint* ParseSession::contents()

More information about the Kde-bindings mailing list