From 11a0ac4e075c66b2bf9f43c85503376ada275d88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sat, 4 Dec 2010 14:20:51 +0100 Subject: [PATCH] xml2: rename '--xmlver' to '--xml-version'. bugfix in settings, change the type of _xml_version from bool to int. --- cli/cmdlineparser.cpp | 2 +- lib/settings.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cli/cmdlineparser.cpp b/cli/cmdlineparser.cpp index 5fe199c75..a4ed1d7c0 100644 --- a/cli/cmdlineparser.cpp +++ b/cli/cmdlineparser.cpp @@ -169,7 +169,7 @@ bool CmdLineParser::ParseFromArgs(int argc, const char* const argv[]) #ifndef NDEBUG // Experimental: Write results in xml2 format - else if (strcmp(argv[i], "--xmlver=2") == 0) + else if (strcmp(argv[i], "--xml-version=2") == 0) { _settings->_xml = true; _settings->_xml_version = 2; diff --git a/lib/settings.h b/lib/settings.h index f1f5eb2fd..0e1ff0135 100644 --- a/lib/settings.h +++ b/lib/settings.h @@ -88,7 +88,7 @@ public: bool _xml; /** @brief xml version (--xmlver=..) */ - bool _xml_version; + int _xml_version; /** @brief How many processes/threads should do checking at the same time. Default is 1. (-j N) */