commit | 20791bdcd7caad0e3ad3adedf7f9f932da278d96 | [log] [tgz] |
---|---|---|
author | Mikhail Lappo <miklelappo@gmail.com> | Thu Mar 23 21:30:36 2017 +0100 |
committer | Mikhail Lappo <miklelappo@gmail.com> | Thu Mar 23 21:52:04 2017 +0100 |
tree | 104e2d28effaf00225d4ad967a6d162c4f7cba59 | |
parent | 0d264bf088960285bc9f4e31250a9a3bfe8e03bf [diff] [blame] |
Removed C-style casts In c++ code would be cleaner to use c++ retinterpret cast instead of old c-style notation Change-Id: Ibeef5e0c374addf108c0a8876a6be45063d8e396
diff --git a/wear_touch.cpp b/wear_touch.cpp index cf33daa..e2ab44d 100644 --- a/wear_touch.cpp +++ b/wear_touch.cpp
@@ -118,7 +118,7 @@ } void* WearSwipeDetector::touch_thread(void* cookie) { - ((WearSwipeDetector*)cookie)->run(); + (static_cast<WearSwipeDetector*>(cookie))->run(); return NULL; }