From e9799289fdcaaeae3d040e20b34540ec5985c056 Mon Sep 17 00:00:00 2001 From: Christophe Geuzaine <cgeuzaine@ulg.ac.be> Date: Wed, 17 Oct 2012 06:01:36 +0000 Subject: [PATCH] cleanup --- Common/CommandLine.cpp | 6 +----- Common/GmshMessage.h | 6 +++--- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/Common/CommandLine.cpp b/Common/CommandLine.cpp index 2bcb113752..44e671823a 100644 --- a/Common/CommandLine.cpp +++ b/Common/CommandLine.cpp @@ -162,19 +162,15 @@ void GetOptions(int argc, char *argv[]) else Msg::Fatal("Missing client name and/or address of OneLab server"); } - - //FHF else if(!strcmp(argv[i] + 1, "lol")) { i++; if(argv[i] && argv[i + 1] && argv[i + 1][0] != '-'){ Msg::LoadOnelabClient(argv[i], argv[i + 1]); i += 2; } - else + else Msg::Fatal("Missing client name and/or address of OneLab server"); } - // - else if(!strcmp(argv[i] + 1, "socket")) { i++; if(argv[i]) diff --git a/Common/GmshMessage.h b/Common/GmshMessage.h index f6fc50b218..e390209e61 100644 --- a/Common/GmshMessage.h +++ b/Common/GmshMessage.h @@ -95,9 +95,9 @@ class Msg { static void SetOnelabNumber(std::string name, double val, bool visible); static void SetOnelabString(std::string name, std::string val, bool visible); static void ExchangeOnelabParameter(const std::string &key, - std::vector<double> &val, - std::map<std::string, std::vector<double> > &fopt, - std::map<std::string, std::vector<std::string> > &copt); + std::vector<double> &val, + std::map<std::string, std::vector<double> > &fopt, + std::map<std::string, std::vector<std::string> > &copt); static void ImportPhysicalsAsOnelabRegions(); }; -- GitLab