summaryrefslogtreecommitdiff
path: root/utilities/emptyvss.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/emptyvss.cpp
parentb745315323de9f27538edac9453205ca70e6186e (diff)
Imported Upstream version 1.7.2+dfsg
Diffstat (limited to 'utilities/emptyvss.cpp')
-rw-r--r--utilities/emptyvss.cpp21
1 files changed, 13 insertions, 8 deletions
diff --git a/utilities/emptyvss.cpp b/utilities/emptyvss.cpp
index 705eb90..e4252f9 100644
--- a/utilities/emptyvss.cpp
+++ b/utilities/emptyvss.cpp
@@ -1,5 +1,10 @@
-/*
- * Copyright 2009 CrossWire Bible Society (http://www.crosswire.org)
+/******************************************************************************
+ *
+ * emptyvss.cpp - Utility to list empty verses in a module
+ *
+ * $Id: emptyvss.cpp 2931 2013-07-31 13:07:26Z scribe $
+ *
+ * Copyright 2001-2013 CrossWire Bible Society (http://www.crosswire.org)
* CrossWire Bible Society
* P. O. Box 2528
* Tempe, AZ 85280-2528
@@ -62,15 +67,15 @@ int main(int argc, char **argv) {
exit(-3);
}
- vkey->Headings(1); // turn on mod/testmnt/book/chap headings
+ vkey->setIntros(false); // turn on mod/testmnt/book/chap headings
(*mod) = TOP;
- while (!mod->Error()) {
+ while (!mod->popError()) {
- if (vkey->Verse())
- if (!strlen ((const char *)(*mod)))
- std::cout << *vkey << std::endl;
- (*mod)++;
+ if (vkey->getVerse())
+ if (!mod->renderText().length())
+ std::cout << *vkey << std::endl;
+ (*mod)++;
}
}