[sword-svn] r3619 - trunk/tests

scribe at crosswire.org scribe at crosswire.org
Sat May 4 11:45:27 MST 2019


Author: scribe
Date: 2019-05-04 11:45:27 -0700 (Sat, 04 May 2019)
New Revision: 3619

Modified:
   trunk/tests/httptest.cpp
Log:
removed c++11 auto references for compilers which don't enable this by default (g++ on rhel7)


Modified: trunk/tests/httptest.cpp
===================================================================
--- trunk/tests/httptest.cpp	2019-04-14 22:30:32 UTC (rev 3618)
+++ trunk/tests/httptest.cpp	2019-05-04 18:45:27 UTC (rev 3619)
@@ -12,9 +12,9 @@
 
 int main(int argc, char **argv) {
 	RemoteTransport *t = new CURLHTTPTransport("crosswire");
-	auto x = t->getDirList("https://ftp.crosswire.org/ftpmirror/pub/sword/raw/");
+	vector<DirEntry> x = t->getDirList("https://ftp.crosswire.org/ftpmirror/pub/sword/raw/");
 //	auto x = t->getDirList("https://crosswire.org/ftpmirror/pub/sword/raw/");
-	for (auto i = x.begin(); i != x.end(); ++i) {
+	for (vector<DirEntry>::const_iterator i = x.begin(); i != x.end(); ++i) {
 		cout << i->name << "\t" << i->size << "\t" << i->isDirectory << endl;
 	}
 	return 0;




More information about the sword-cvs mailing list