From 7d2f35c7e36a270498d6a7edd88780d941f7c462 Mon Sep 17 00:00:00 2001 From: Florent Rougon Date: Mon, 1 Jan 2018 01:11:35 +0100 Subject: [PATCH] Add-ons: update namespace in a string and a comment These were forgotten in commit f5ab26bd7182b1efb9216ddf3be122a3c6da0b02. --- src/Add-ons/AddonVersion.cxx | 2 +- src/Add-ons/AddonVersion.hxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Add-ons/AddonVersion.cxx b/src/Add-ons/AddonVersion.cxx index 49097f549..26c93f7f0 100644 --- a/src/Add-ons/AddonVersion.cxx +++ b/src/Add-ons/AddonVersion.cxx @@ -95,7 +95,7 @@ AddonVersionSuffix::releaseTypeStr(AddonVersionSuffixPrereleaseType releaseType) return string(); default: throw sg_error("unexpected value for member of " - "flightgear::AddonVersionSuffixPrereleaseType: " + + "flightgear::addons::AddonVersionSuffixPrereleaseType: " + std::to_string(enumValue(releaseType))); } } diff --git a/src/Add-ons/AddonVersion.hxx b/src/Add-ons/AddonVersion.hxx index 65dc9e307..da3c3888b 100644 --- a/src/Add-ons/AddonVersion.hxx +++ b/src/Add-ons/AddonVersion.hxx @@ -146,7 +146,7 @@ public: explicit AddonVersion(const std::tuple& t); // Using the method names major() and minor() can lead to incomprehensible - // errors such as "major is not a member of flightgear::AddonVersion" + // errors such as "major is not a member of flightgear::addons::AddonVersion" // because of a hideous glibc bug[1]: major() and minor() are defined by // standard headers as *macros*! //