|
Boost-Commit : |
From: ghost_at_[hidden]
Date: 2007-08-23 15:51:48
Author: vladimir_prus
Date: 2007-08-23 15:51:47 EDT (Thu, 23 Aug 2007)
New Revision: 38871
URL: http://svn.boost.org/trac/boost/changeset/38871
Log:
Apply patch to fix gcc warning.
Fixes #1209.
Text files modified:
trunk/libs/program_options/src/options_description.cpp | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
Modified: trunk/libs/program_options/src/options_description.cpp
==============================================================================
--- trunk/libs/program_options/src/options_description.cpp (original)
+++ trunk/libs/program_options/src/options_description.cpp 2007-08-23 15:51:47 EDT (Thu, 23 Aug 2007)
@@ -254,7 +254,7 @@
return m_options;
}
- const option_description*
+ const option_description*
options_description::find_nothrow(const std::string& name,
bool approx) const
{
@@ -279,10 +279,10 @@
//
// For now, we don't check the situation when there are
// two full matches.
-
+
if (r == option_description::full_match)
{
- return m_options[i].get();
+ return m_options[i].get();
}
found = m_options[i];
@@ -293,8 +293,8 @@
if (approximate_matches.size() > 1)
boost::throw_exception(
ambiguous_option(name, approximate_matches));
- else
- return found.get();
+
+ return found.get();
}
BOOST_PROGRAM_OPTIONS_DECL
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk