aboutsummaryrefslogtreecommitdiffstats
path: root/src/keys/treekeyidx.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/keys/treekeyidx.cpp')
-rw-r--r--src/keys/treekeyidx.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/keys/treekeyidx.cpp b/src/keys/treekeyidx.cpp
index 99bd62f..d5d32fe 100644
--- a/src/keys/treekeyidx.cpp
+++ b/src/keys/treekeyidx.cpp
@@ -1,7 +1,7 @@
/******************************************************************************
* versekey.h - code for class 'versekey'- a standard Biblical verse key
*
- * $Id: treekeyidx.cpp,v 1.9 2002/09/30 10:35:26 dglassey Exp $
+ * $Id: treekeyidx.cpp,v 1.11 2002/10/01 22:04:58 dglassey Exp $
*
* Copyright 1998 CrossWire Bible Society (http://www.crosswire.org)
* CrossWire Bible Society
@@ -32,6 +32,8 @@
#include <unistd.h>
#endif
+SWORD_NAMESPACE_START
+
static const char nl = '\n';
static const char *classes[] = {"TreeKeyIdx", "TreeKey", "SWKey", "SWObject", 0};
SWClass TreeKeyIdx::classdef(classes);
@@ -127,12 +129,12 @@ void TreeKeyIdx::save() {
const char *TreeKeyIdx::getFullName() const {
TreeNode parent;
- static string fullPath;
+ static std::string fullPath;
fullPath = currentNode.name;
parent.parent = currentNode.parent;
while (parent.parent > -1) {
getTreeNodeFromIdxOffset(parent.parent, &parent);
- fullPath = ((string)parent.name) + (string) "/" + fullPath;
+ fullPath = ((std::string)parent.name) + (std::string) "/" + fullPath;
}
return fullPath.c_str();
}
@@ -303,7 +305,7 @@ void TreeKeyIdx::getTreeNodeFromDatOffset(long ioffset, TreeNode *node) const {
read(datfd->getFd(), &tmp, 4);
node->firstChild = swordtoarch32(tmp);
- string name;
+ std::string name;
do {
read(datfd->getFd(), &ch, 1);
name += ch;
@@ -594,3 +596,4 @@ SWKey *TreeKeyIdx::clone() const
return new TreeKeyIdx(*this);
}
+SWORD_NAMESPACE_END