summaryrefslogtreecommitdiff
path: root/src/modules/comments/zcom
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/comments/zcom')
-rw-r--r--src/modules/comments/zcom/zcom.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/modules/comments/zcom/zcom.cpp b/src/modules/comments/zcom/zcom.cpp
index 65c4ca8..839baf5 100644
--- a/src/modules/comments/zcom/zcom.cpp
+++ b/src/modules/comments/zcom/zcom.cpp
@@ -3,7 +3,7 @@
* zcom.cpp - code for class 'zCom'- a module that reads raw commentary
* files
*
- * $Id: zcom.cpp 2833 2013-06-29 06:40:28Z chrislit $
+ * $Id: zcom.cpp 3156 2014-04-17 03:50:37Z greg.hellings $
*
* Copyright 1996-2013 CrossWire Bible Society (http://www.crosswire.org)
* CrossWire Bible Society
@@ -68,24 +68,24 @@ bool zCom::isWritable() const {
/******************************************************************************
- * zCom::getRawEntry - Returns the correct verse when char * cast
- * is requested
+ * zCom::getRawEntry - Returns the current verse buffer
*
- * RET: string buffer with verse
+ * RET: buffer with verse
*/
+
SWBuf &zCom::getRawEntryBuf() const {
long start = 0;
unsigned short size = 0;
- unsigned long buffnum;
- VerseKey *key = &getVerseKey();
+ unsigned long buffnum = 0;
+ VerseKey &key = getVerseKey();
- findOffset(key->getTestament(), key->getTestamentIndex(), &start, &size, &buffnum);
+ findOffset(key.getTestament(), key.getTestamentIndex(), &start, &size, &buffnum);
entrySize = size; // support getEntrySize call
-
+
entryBuf = "";
- zReadText(key->getTestament(), start, size, buffnum, entryBuf);
-
- rawFilter(entryBuf, key);
+
+ zReadText(key.getTestament(), start, size, buffnum, entryBuf);
+ rawFilter(entryBuf, &key);
// if (!isUnicode())
prepText(entryBuf);