[geos-commits] [SCM] geos branch svn-trunk updated. f825b41004b37fcb0dd4ea76f22b5b6aa447b2ac
git at osgeo.org
git at osgeo.org
Tue Apr 11 23:51:24 PDT 2017
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "geos".
The branch, svn-trunk has been updated
via f825b41004b37fcb0dd4ea76f22b5b6aa447b2ac (commit)
from c505c8ac87e27a271f261f17e155598c9bcb2aaa (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit f825b41004b37fcb0dd4ea76f22b5b6aa447b2ac
Author: Kurt Schwehr <schwehr at google.com>
Date: Tue Apr 11 13:49:15 2017 -0700
Add explicit to StringTokenizer ctor and move more to the initializer list in ctor.
Signed-off-by: Sandro Santilli <strk at kbt.io>
diff --git a/include/geos/io/StringTokenizer.h b/include/geos/io/StringTokenizer.h
index ce8e5ff..04571d8 100644
--- a/include/geos/io/StringTokenizer.h
+++ b/include/geos/io/StringTokenizer.h
@@ -41,7 +41,7 @@ public:
TT_WORD
};
//StringTokenizer();
- StringTokenizer(const std::string& txt);
+ explicit StringTokenizer(const std::string& txt);
~StringTokenizer() {}
int nextToken();
int peekNextToken();
diff --git a/src/io/StringTokenizer.cpp b/src/io/StringTokenizer.cpp
index 9813bff..e3737ea 100644
--- a/src/io/StringTokenizer.cpp
+++ b/src/io/StringTokenizer.cpp
@@ -31,10 +31,10 @@ namespace io { // geos.io
/*public*/
StringTokenizer::StringTokenizer(const string &txt)
:
- str(txt)
+ str(txt),
+ stok(""),
+ ntok(0.0)
{
- stok="";
- ntok=0.0;
iter=str.begin();
}
-----------------------------------------------------------------------
Summary of changes:
include/geos/io/StringTokenizer.h | 2 +-
src/io/StringTokenizer.cpp | 6 +++---
2 files changed, 4 insertions(+), 4 deletions(-)
hooks/post-receive
--
geos
More information about the geos-commits
mailing list