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()
{
cout << "remwharead " << global::version << endl <<
cout << "remwharead " << remwharead::version << endl <<
"Copyright (C) 2019 tastytea <tastytea@tastytea.de>\n"
"License GPLv3: GNU GPL version 3 "
"<https://www.gnu.org/licenses/gpl-3.0.html>.\n"

View File

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

View File

@ -66,7 +66,7 @@ void Export::RSS::print() const
writer.endElement("", "", "description");
writer.startElement("", "", "generator");
writer.characters(string("remwharead ") + global::version);
writer.characters(string("remwharead ") + version);
writer.endElement("", "", "generator");
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);
request.set("User-Agent", string("remwharead/") + global::version);
request.set("User-Agent", string("remwharead/") + version);
HTTPResponse response;

View File

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