Change namespace of version.

This commit is contained in:
tastytea 2020-01-27 04:50:33 +01:00
parent 8c1c18ed54
commit bb5d9cecad
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
5 changed files with 6 additions and 6 deletions

View File

@ -237,7 +237,7 @@ void App::print_help(const string &option)
void App::print_version() void App::print_version()
{ {
cout << "remwharead " << global::version << endl << cout << "remwharead " << remwharead::version << endl <<
"Copyright (C) 2019 tastytea <tastytea@tastytea.de>\n" "Copyright (C) 2019 tastytea <tastytea@tastytea.de>\n"
"License GPLv3: GNU GPL version 3 " "License GPLv3: GNU GPL version 3 "
"<https://www.gnu.org/licenses/gpl-3.0.html>.\n" "<https://www.gnu.org/licenses/gpl-3.0.html>.\n"

View File

@ -36,7 +36,7 @@ void Export::AsciiDoc::print() const
try try
{ {
_out << "= Visited things\n" _out << "= Visited things\n"
<< ":Author: remwharead " << global::version << "\n" << ":Author: remwharead " << version << "\n"
<< ":Date: " << ":Date: "
<< timepoint_to_string(system_clock::now()) << "\n" << timepoint_to_string(system_clock::now()) << "\n"
<< ":TOC: right\n" << ":TOC: right\n"

View File

@ -66,7 +66,7 @@ void Export::RSS::print() const
writer.endElement("", "", "description"); writer.endElement("", "", "description");
writer.startElement("", "", "generator"); writer.startElement("", "", "generator");
writer.characters(string("remwharead ") + global::version); writer.characters(string("remwharead ") + version);
writer.endElement("", "", "generator"); writer.endElement("", "", "generator");
const string now = DateTimeFormatter::format(DateTime(), const string now = DateTimeFormatter::format(DateTime(),

View File

@ -187,7 +187,7 @@ string URI::make_request(const string &uri, bool archive) const
} }
HTTPRequest request(method, path, HTTPMessage::HTTP_1_1); HTTPRequest request(method, path, HTTPMessage::HTTP_1_1);
request.set("User-Agent", string("remwharead/") + global::version); request.set("User-Agent", string("remwharead/") + version);
HTTPResponse response; HTTPResponse response;

View File

@ -1,9 +1,9 @@
#ifndef VERSION_HPP #ifndef VERSION_HPP
#define VERSION_HPP #define VERSION_HPP
namespace global namespace remwharead
{ {
static constexpr char version[] = "@PROJECT_VERSION@"; static constexpr char version[] = "@PROJECT_VERSION@";
} } // namespace remwharead
#endif // VERSION_HPP #endif // VERSION_HPP