From cf96a92e0994a9cc1860c138b11d7568aee4993c Mon Sep 17 00:00:00 2001 From: Rico Tiongson Date: Sat, 2 May 2020 01:28:10 +0800 Subject: [PATCH] Apply clang-format --- comfortable-swipe-main.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/comfortable-swipe-main.cpp b/comfortable-swipe-main.cpp index 2220dd9..d7e8e82 100644 --- a/comfortable-swipe-main.cpp +++ b/comfortable-swipe-main.cpp @@ -54,7 +54,7 @@ int parse_config(void *config, const char section[], const char name[], /** * The main driver program. */ -int main(int argc, char* argv[]) { +int main(int argc, char *argv[]) { using namespace std; using namespace comfortable_swipe; // unsync stdio for faster IO @@ -90,7 +90,10 @@ int main(int argc, char* argv[]) { commands[i] = config[gesture_swipe_xdokey::command_name[i]]; // correctly parse threshold as float float threshold = 0.0f; - try { threshold = stof(config["threshold"]); } catch(std::invalid_argument) { } + try { + threshold = stof(config["threshold"]); + } catch (std::invalid_argument) { + } // create swipe handler gesture_swipe_xdokey keyswipe(commands, threshold); // initialize mouse hold gesture handler