From 5cf43587f7e0aaebdf04181285c231f967b06365 Mon Sep 17 00:00:00 2001 From: sairajat Date: Tue, 7 Feb 2017 16:17:53 -0500 Subject: [PATCH] Bug Fix in Patterns::Selection --- source/base/parameter_handler.cc | 2 +- tests/parameter_handler/parameter_handler_3_with_space.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/source/base/parameter_handler.cc b/source/base/parameter_handler.cc index a0d6c22ead..128e2410b3 100644 --- a/source/base/parameter_handler.cc +++ b/source/base/parameter_handler.cc @@ -469,7 +469,7 @@ namespace Patterns std::string tmp(sequence); // remove whitespace at beginning while ((tmp.length() != 0) && (std::isspace (tmp[0]))) - tmp.erase (0,1); + tmp.erase (0,1); // check the different possibilities while (tmp.find('|') != std::string::npos) diff --git a/tests/parameter_handler/parameter_handler_3_with_space.cc b/tests/parameter_handler/parameter_handler_3_with_space.cc index ebff780d54..f16ab06ff2 100644 --- a/tests/parameter_handler/parameter_handler_3_with_space.cc +++ b/tests/parameter_handler/parameter_handler_3_with_space.cc @@ -15,7 +15,7 @@ -// test the output generated by ParameterHandler::print_parameters(Text) +// Like parameter_handler_03, but use a MultipleSelection pattern that starts with a space; eat that space #include "../tests.h" #include -- 2.39.5