Ticket #1209: program_options_options_description.diff

File program_options_options_description.diff, 1.1 KB (added by Darren Garvey, 15 years ago)
  • options_description.cpp

     
    254254        return m_options;
    255255    }
    256256
    257     const option_description* 
     257    const option_description*
    258258    options_description::find_nothrow(const std::string& name,
    259259                                      bool approx) const
    260260    {
     
    279279            //
    280280            // For now, we don't check the situation when there are
    281281            // two full matches.
    282                            
     282
    283283            if (r == option_description::full_match)
    284284            {
    285                 return m_options[i].get();               
     285                return m_options[i].get();
    286286            }
    287287
    288288            found = m_options[i];
     
    293293        if (approximate_matches.size() > 1)
    294294            boost::throw_exception(
    295295                ambiguous_option(name, approximate_matches));
    296         else
    297             return found.get();
     296
     297        return found.get();
    298298    }
    299299
    300300    BOOST_PROGRAM_OPTIONS_DECL