[sword-svn] r3848 - trunk/examples/tasks

scribe at crosswire.org scribe at crosswire.org
Thu Feb 25 16:42:21 EST 2021


Author: scribe
Date: 2021-02-25 16:42:21 -0500 (Thu, 25 Feb 2021)
New Revision: 3848

Modified:
   trunk/examples/tasks/simpleRange.cpp
Log:
updated simpleRange example to use VerseKey *


Modified: trunk/examples/tasks/simpleRange.cpp
===================================================================
--- trunk/examples/tasks/simpleRange.cpp	2021-02-25 21:30:13 UTC (rev 3847)
+++ trunk/examples/tasks/simpleRange.cpp	2021-02-25 21:42:21 UTC (rev 3848)
@@ -41,8 +41,8 @@
 
 	if (!module) return cerr << "\nCouldn't find module: " << moduleName << "\n\n", -1;
 
-	VerseKey parser = module->getKey();
-	ListKey range = parser.parseVerseList(verseRange, parser, true);
+	VerseKey *parser = (VerseKey *)module->getKey();
+	ListKey range = parser->parseVerseList(verseRange, *parser, true);
 
 	cout << "\n" << module->getDescription() << " -- " << range.getRangeText();
 	cout << "\n-------------------\n";



More information about the sword-cvs mailing list