From d91d422210f4f54df526dc8bf7082741730d0420 Mon Sep 17 00:00:00 2001 From: mes5k Date: Sat, 7 Feb 2004 23:37:00 +0000 Subject: [PATCH] fix for the output --- src/XorHandler.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/XorHandler.cpp b/src/XorHandler.cpp index e3ee77d..e7cc11e 100644 --- a/src/XorHandler.cpp +++ b/src/XorHandler.cpp @@ -52,13 +52,14 @@ void XorHandler::longUsage() { for ( int i = 0; (unsigned int)i < _orList.size(); i++ ) { - int orCount = 0; for ( ArgVectorIterator it = _orList[i].begin(); - it != _orList[i].end(); it++, orCount++ ) + it != _orList[i].end(); + it++ ) { cout << " " << (*it)->longID() << endl << " " << (*it)->getDescription() << endl; - if ( (orCount % 2) == 0 ) + + if ( it+1 != _orList[i].end() ) cout << " -- OR -- " << endl; } cout << endl << endl;