minor reformatting

This commit is contained in:
mes5k 2011-01-02 23:10:18 +00:00
parent d6f5047688
commit 82d187771b

View File

@ -398,7 +398,6 @@ inline void CmdLine::xorAdd( std::vector<Arg*>& ors )
{ {
(*it)->forceRequired(); (*it)->forceRequired();
(*it)->setRequireLabel( "OR required" ); (*it)->setRequireLabel( "OR required" );
add( *it ); add( *it );
} }
} }
@ -453,7 +452,8 @@ inline void CmdLine::parse(std::vector<std::string>& args)
int requiredCount = 0; int requiredCount = 0;
for (int i = 0; static_cast<unsigned int>(i) < args.size(); i++) { for (int i = 0; static_cast<unsigned int>(i) < args.size(); i++)
{
bool matched = false; bool matched = false;
for (ArgListIterator it = _argList.begin(); for (ArgListIterator it = _argList.begin();
it != _argList.end(); it++) { it != _argList.end(); it++) {
@ -616,9 +616,7 @@ inline bool CmdLine::getExceptionHandling() const
inline void CmdLine::reset() inline void CmdLine::reset()
{ {
for( ArgListIterator it = _argList.begin(); it != _argList.end(); it++ ) for( ArgListIterator it = _argList.begin(); it != _argList.end(); it++ )
{
(*it)->reset(); (*it)->reset();
}
_progName.clear(); _progName.clear();
} }