[sword-svn] r2966 - trunk/examples/classes

scribe at crosswire.org scribe at crosswire.org
Sun Aug 18 09:14:22 MST 2013


Author: scribe
Date: 2013-08-18 09:14:22 -0700 (Sun, 18 Aug 2013)
New Revision: 2966

Modified:
   trunk/examples/classes/ciphercng.cpp
   trunk/examples/classes/swmgrex.cpp
Log:
updated examples to not use deprecated methods


Modified: trunk/examples/classes/ciphercng.cpp
===================================================================
--- trunk/examples/classes/ciphercng.cpp	2013-08-18 16:08:06 UTC (rev 2965)
+++ trunk/examples/classes/ciphercng.cpp	2013-08-18 16:14:22 UTC (rev 2966)
@@ -57,7 +57,7 @@
 		cout << "\nModule text:\n";
 		module->setKey("1jn 1:9");
 		cout << "[ " << module->getKeyText() << " ]\n";
-		cout << (const char *)*module;
+		cout << module->renderText();
 		cout << "\n\nEnter new cipher key: ";
 		cin >> key;
 		cout << "\nSetting key to: " << key;

Modified: trunk/examples/classes/swmgrex.cpp
===================================================================
--- trunk/examples/classes/swmgrex.cpp	2013-08-18 16:08:06 UTC (rev 2965)
+++ trunk/examples/classes/swmgrex.cpp	2013-08-18 16:14:22 UTC (rev 2966)
@@ -55,7 +55,7 @@
 // Print out a verse from the first module:
 
 	cout << "\n" << manager.Modules.begin()->second->getKeyText() << ":\n";
-	cout << (const char *)(*manager.Modules.begin()->second);
+	cout << manager.Modules.begin()->second->renderText();
 	cout << " (" << manager.Modules.begin()->second->getName() << ")\n";
 
 // Print out the same verse from the second module (less confusing):




More information about the sword-cvs mailing list