From 7a00574163029c0c2b649878c95d5acbd083564a Mon Sep 17 00:00:00 2001 From: "Roberto C. Sanchez" Date: Mon, 12 May 2014 08:21:30 -0400 Subject: Imported Upstream version 1.7.2+dfsg --- utilities/emptyvss.cpp | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) (limited to 'utilities/emptyvss.cpp') 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)++; } } -- cgit v1.2.3