summaryrefslogtreecommitdiff
path: root/utilities/imp2gbs.cpp
diff options
context:
space:
mode:
authorRoberto C. Sanchez <roberto@connexer.com>2014-05-12 08:21:30 -0400
committerRoberto C. Sanchez <roberto@connexer.com>2014-05-12 08:21:30 -0400
commit7a00574163029c0c2b649878c95d5acbd083564a (patch)
treec13cc5736025834df2874ed87ee8598070025ea6 /utilities/imp2gbs.cpp
parentb745315323de9f27538edac9453205ca70e6186e (diff)
Imported Upstream version 1.7.2+dfsg
Diffstat (limited to 'utilities/imp2gbs.cpp')
-rw-r--r--utilities/imp2gbs.cpp11
1 files changed, 8 insertions, 3 deletions
diff --git a/utilities/imp2gbs.cpp b/utilities/imp2gbs.cpp
index b8edbb4..dde871f 100644
--- a/utilities/imp2gbs.cpp
+++ b/utilities/imp2gbs.cpp
@@ -1,5 +1,10 @@
-/*
- * Copyright 2009 CrossWire Bible Society (http://www.crosswire.org)
+/******************************************************************************
+ *
+ * imp2gbs.cpp - Utility to import GenBooks in IMP format
+ *
+ * $Id: imp2gbs.cpp 2980 2013-09-14 21:51:47Z scribe $
+ *
+ * Copyright 2002-2013 CrossWire Bible Society (http://www.crosswire.org)
* CrossWire Bible Society
* P. O. Box 2528
* Tempe, AZ 85280-2528
@@ -203,7 +208,7 @@ void writeEntry(SWModule *book, SWBuf keyBuffer, SWBuf entBuffer) {
book->setKey(keyBuffer.c_str());
// check to see if we already have an entry
- for (int i = 2; book->getKey()->Error() != KEYERR_OUTOFBOUNDS; i++) {
+ for (int i = 2; book->getKey()->popError() != KEYERR_OUTOFBOUNDS; i++) {
SWBuf key;
key.setFormatted("%s {%d}", keyBuffer.c_str(), i);
std::cout << "dup key, trying: " << key << std::endl;