aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/cmd.hpp
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2020-12-07 12:22:15 +0200
committerAqua-sama <aqua@iserlohn-fortress.net>2020-12-07 12:22:15 +0200
commit92b3c2dcff3e85ad3d455f6ab845d9a97d3b525b (patch)
treea850643f7b86e6cebfddbeec98d7c372478d379c /src/cmd/cmd.hpp
parentHostlist filter plugin can rewrite hostnames (diff)
downloadsmolbote-92b3c2dcff3e85ad3d455f6ab845d9a97d3b525b.tar.xz
Rewrite meson build scripts into cmakelists
Diffstat (limited to 'src/cmd/cmd.hpp')
-rw-r--r--src/cmd/cmd.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/cmd.hpp b/src/cmd/cmd.hpp
index 37bb3ce..1aad060 100644
--- a/src/cmd/cmd.hpp
+++ b/src/cmd/cmd.hpp
@@ -24,7 +24,7 @@ using map = std::unordered_map<std::string, subcommand_fn<T>>;
// a helper function to join the keys of a command_map into a string
template <typename T>
-[[nodiscard]] inline QString join_keys(const map<T> &map, const QString sep = ", ")
+[[nodiscard]] inline QString join_keys(const map<T> &map, const QString &sep = ", ")
{
QString k;
for(auto it = map.cbegin(); it != map.cend(); ++it) {
@@ -59,7 +59,7 @@ template <typename T>
parser.process(app);
if(parser.isSet(build)) {
- std::cout << app.applicationName().toStdString() << " " << poi_Version << std::endl;
+ std::cout << app.applicationName().toStdString() << " " << POI_VERSION << std::endl;
exit(0);
}