From f6894fabc8b18fb54a76e1dbc90051f6a7e2dac9 Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Mon, 18 Aug 2014 22:14:31 +1000 Subject: [PATCH] whitespace --- matrix.cpp | 4 ++-- matrix.hpp | 4 ++-- options.cpp | 20 ++++++++++---------- test/matrix.cpp | 4 ++-- vector.cpp | 6 +++--- vector.hpp | 4 ++-- 6 files changed, 21 insertions(+), 21 deletions(-) diff --git a/matrix.cpp b/matrix.cpp index 88aef283..e9652191 100644 --- a/matrix.cpp +++ b/matrix.cpp @@ -5,12 +5,12 @@ * terms of the GNU General Public License as published by the Free Software * Foundation, either version 3 of the License, or (at your option) any later * version. - * + * * libgim is distributed in the hope that it will be useful, but WITHOUT ANY * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more * details. - * + * * You should have received a copy of the GNU General Public License * along with libgim. If not, see . * diff --git a/matrix.hpp b/matrix.hpp index 0a5b2eeb..7b957be5 100644 --- a/matrix.hpp +++ b/matrix.hpp @@ -5,12 +5,12 @@ * terms of the GNU General Public License as published by the Free Software * Foundation, either version 3 of the License, or (at your option) any later * version. - * + * * libgim is distributed in the hope that it will be useful, but WITHOUT ANY * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more * details. - * + * * You should have received a copy of the GNU General Public License * along with libgim. If not, see . * diff --git a/options.cpp b/options.cpp index 652ac6c9..f40002dd 100644 --- a/options.cpp +++ b/options.cpp @@ -64,7 +64,7 @@ void option::execute (void) { throw runtime_error( "Cannot provide no value for the option '" + m_longopt + "'" - ); + ); } @@ -245,7 +245,7 @@ bytesoption::execute (const std::string& data) { bytestype specified = m_type; try { specified = type_from_character (data[cursor]); - // If the character is a digit, it just means the user skipped the + // If the character is a digit, it just means the user skipped the // size specifier, which is ok. } catch (domain_error x) { if (!isdigit (data[cursor])) @@ -395,7 +395,7 @@ processor::parse_short (int pos, int argc, const char **argv) { /** * Parse a single argument in long form. We are given an offset into the * argument array, and arguments. Establishes whether a value is present and - * passes control over to the option. + * passes control over to the option. * * The format of the options are "--foo[=bar]" * @@ -430,11 +430,11 @@ processor::parse_long (int pos, int argc, const char ** argv) { } option *o = m_longopt[arg]; - if (!o) + if (!o) throw runtime_error ("Cannot match option"); if (data) - o->execute (data); + o->execute (data); else o->execute (); @@ -479,12 +479,12 @@ processor::parse_args (int argc, const char ** argv) { if (strlen (argv[i]) <= 1) throw runtime_error ("Invalid argument"); - // Actually hand off args to be parsed. Subtract one from the + // Actually hand off args to be parsed. Subtract one from the // tokens consumed, as the for loop increments tokens too. unsigned int consumed; - if (argv[i][1] != '-') + if (argv[i][1] != '-') consumed = parse_short (i, argc, argv); - else + else consumed = parse_long (i, argc, argv); assert (consumed >= 1); @@ -533,7 +533,7 @@ processor::remove_option (char letter) { [&target] (std::unique_ptr