From 139248f6a6891dc8cb3c319816c5d337779a7e05 Mon Sep 17 00:00:00 2001 From: Rico Tiongson Date: Thu, 7 Feb 2019 04:26:11 +0800 Subject: [PATCH] Use const char* for conf_filename --- src/comfortable-swipe.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/comfortable-swipe.cpp b/src/comfortable-swipe.cpp index 73a402c..7b45cdf 100644 --- a/src/comfortable-swipe.cpp +++ b/src/comfortable-swipe.cpp @@ -185,7 +185,7 @@ struct swipe_gesture_impl : swipe_gesture { // path services namespace service { // get the full path of the .conf file - string conf_filename() { + const char* conf_filename() { return CONFIG; } // get the full path of the .desktop file associated @@ -216,7 +216,7 @@ namespace service { const regex gesture_update(util::build_gesture_update()); const regex gesture_end(util::build_gesture_end()); // read config file - auto config = util::read_config_file(conf_filename().data()); + auto config = util::read_config_file(conf_filename()); // initialize gesture handler swipe_gesture_impl swipe( config.count("threshold") ? stof(config["threshold"]) : 0.0,