From ba3c5aa40274c11f9cefd4e9842be3488cad07b4 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Fri, 15 Jun 2018 14:05:25 +0200 Subject: Fix indentation, cleanup, refactoring, deletions * Remove unused methods for adding hostname and user to xml * Avoid copying/(de)serializing XML a thousand times * Fix Session::isValid() or rather make it a bit more usable (although it's unused currently) * baseDir is global, not per VSession, which doesn't make any sense without the legacy approach of recusively loading one xml file per entry --- src/command_line_options.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/command_line_options.cpp') diff --git a/src/command_line_options.cpp b/src/command_line_options.cpp index 818bc06..2018760 100644 --- a/src/command_line_options.cpp +++ b/src/command_line_options.cpp @@ -6,7 +6,7 @@ CommandLineOptions::CommandLineOptions(int argc, char * const argv[]) { // parse command line arguments (please sort by short option for easier handling) static const struct option longOptions[] = { - {"allow-vm-edit", no_argument, NULL, 'vmed'}, + {"allow-vm-edit", no_argument, NULL, 'vmed'}, {"autoquit", required_argument, NULL, 'aqit'}, {"base", required_argument, NULL, 'b'}, {"path", required_argument, NULL, 'b'}, // Compatibility to v1.0 @@ -114,8 +114,8 @@ CommandLineOptions::CommandLineOptions(int argc, char * const argv[]) { options.insert("uuid", optarg); break; case 'vmed': - options.insert("allow-vm-edit", ""); - break; + options.insert("allow-vm-edit", ""); + break; default: options.insert("error", "error"); break; -- cgit v1.2.3-55-g7522