aboutsummaryrefslogtreecommitdiffstats
path: root/tests/genbooktest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/genbooktest.cpp')
-rw-r--r--tests/genbooktest.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/genbooktest.cpp b/tests/genbooktest.cpp
index c97d4c9..4867161 100644
--- a/tests/genbooktest.cpp
+++ b/tests/genbooktest.cpp
@@ -4,7 +4,9 @@
#include <stdio.h>
#include <treekeyidx.h>
#include <rawgenbook.h>
-
+#ifndef NO_SWORD_NAMESPACE
+using namespace sword;
+#endif
void printTree(TreeKeyIdx treeKey, TreeKeyIdx *target = 0, int level = 1) {
if (!target)
@@ -54,7 +56,7 @@ void viewEntryText(RawGenBook *book) {
void setEntryText(RawGenBook *book) {
- string body;
+ std::string body;
TreeKeyIdx *treeKey = (TreeKeyIdx *)(SWKey *)(*book);
if (treeKey->getOffset()) {
char buf[1023];
@@ -123,7 +125,7 @@ int main(int argc, char **argv) {
TreeKeyIdx root = *((TreeKeyIdx *)((SWKey *)(*book)));
treeKey = (TreeKeyIdx *)(SWKey *)(*book);
- string input;
+ std::string input;
char line[1024];
do {