[sword-svn] r2905 - trunk/src/keys

scribe at crosswire.org scribe at crosswire.org
Wed Jul 17 05:18:16 MST 2013


Author: scribe
Date: 2013-07-17 05:18:15 -0700 (Wed, 17 Jul 2013)
New Revision: 2905

Modified:
   trunk/src/keys/listkey.cpp
Log:
fixed horrible bug in new const/non-const getElement overload


Modified: trunk/src/keys/listkey.cpp
===================================================================
--- trunk/src/keys/listkey.cpp	2013-07-16 12:47:37 UTC (rev 2904)
+++ trunk/src/keys/listkey.cpp	2013-07-17 12:18:15 UTC (rev 2905)
@@ -268,7 +268,8 @@
 }
 
 SWKey *ListKey::getElement(int pos) {
-	return const_cast<SWKey *>(getElement(pos));
+	const ListKey &self = *this;
+	return const_cast<SWKey *>(self.getElement(pos));
 }
 
 	




More information about the sword-cvs mailing list