summaryrefslogtreecommitdiff
path: root/include/listkey.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/listkey.h')
-rw-r--r--include/listkey.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/include/listkey.h b/include/listkey.h
index a388a06..e081a32 100644
--- a/include/listkey.h
+++ b/include/listkey.h
@@ -4,7 +4,7 @@
* types of keys for indexing into modules
* (e.g. verse, word, place, etc.)
*
- * $Id: listkey.h 2893 2013-07-16 03:07:02Z scribe $
+ * $Id: listkey.h 3541 2017-12-03 18:40:33Z scribe $
*
* Copyright 1997-2013 CrossWire Bible Society (http://www.crosswire.org)
* CrossWire Bible Society
@@ -89,7 +89,7 @@ public:
* @return error status
* deprecated use setToElement
*/
- virtual char setToElement(int ielement, SW_POSITION = TOP);
+ virtual char setToElement(int ielement, SW_POSITION pos = TOP);
// deprecated use setToElement
SWDEPRECATED virtual char SetToElement(int ielement, SW_POSITION pos = TOP) { return setToElement(ielement, pos); }
@@ -122,7 +122,6 @@ public:
/** Positions this key
*
* @param pos position
- * @return *this
*/
virtual void setPosition(SW_POSITION pos);
@@ -144,7 +143,7 @@ public:
* Returns the index for the new one given as as parameter.
* The first parameter is the new index.
*/
- virtual void setIndex(long index) { setToElement(index); }
+ virtual void setIndex(long index) { setToElement((int)index); }
virtual const char *getText() const;
virtual void setText(const char *ikey);
virtual void sort();