Change namespace of version.
This commit is contained in:
parent
8c1c18ed54
commit
bb5d9cecad
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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(),
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue