summaryrefslogtreecommitdiff
path: root/navit/gui/qml/gui_qml.cpp
diff options
context:
space:
mode:
authorJoseph Herlant <aerostitch@users.noreply.github.com>2018-05-30 08:43:42 -0700
committerjkoan <jkoan@users.noreply.github.com>2018-05-30 17:43:42 +0200
commit567a02aa949dfa34f7b2c2246c6eb6f8818fdf01 (patch)
tree4bb102fa60f0d01db0184d1424a5fc822ba79bc9 /navit/gui/qml/gui_qml.cpp
parentcd477eb0e05b74b8dd26aa2df2778505a3b3c37c (diff)
downloadnavit-567a02aa949dfa34f7b2c2246c6eb6f8818fdf01.tar.gz
Cleanup:global:force the re-attach the return type to the function declaration (#605)
* Cleanup:global:force the re-attach the return type to the function declaration * cleanup:global:some loose ends
Diffstat (limited to 'navit/gui/qml/gui_qml.cpp')
-rw-r--r--navit/gui/qml/gui_qml.cpp12
1 files changed, 4 insertions, 8 deletions
diff --git a/navit/gui/qml/gui_qml.cpp b/navit/gui/qml/gui_qml.cpp
index 49716debc..8c6f232f8 100644
--- a/navit/gui/qml/gui_qml.cpp
+++ b/navit/gui/qml/gui_qml.cpp
@@ -224,8 +224,7 @@ static void gui_qml_keypress(void *data, char *key) {
return;
}
-static void
-gui_qml_window_closed(struct gui_priv *data) {
+static void gui_qml_window_closed(struct gui_priv *data) {
struct gui_priv *this_=(struct gui_priv*) data;
this_->navitProxy->quit();
}
@@ -328,8 +327,7 @@ static int gui_qml_set_graphics(struct gui_priv *this_, struct graphics *gra) {
return 0;
}
-static int
-gui_qml_get_attr(struct gui_priv *this_, enum attr_type type, struct attr *attr) {
+static int gui_qml_get_attr(struct gui_priv *this_, enum attr_type type, struct attr *attr) {
switch (type) {
case attr_fullscreen:
attr->u.num=this_->fullscreen;
@@ -350,8 +348,7 @@ gui_qml_get_attr(struct gui_priv *this_, enum attr_type type, struct attr *attr)
return 1;
}
-static int
-gui_qml_set_attr(struct gui_priv *this_, struct attr *attr) {
+static int gui_qml_set_attr(struct gui_priv *this_, struct attr *attr) {
switch (attr->type) {
case attr_fullscreen:
if (!(this_->fullscreen) && (attr->u.num)) {
@@ -387,8 +384,7 @@ struct gui_methods gui_qml_methods = {
gui_qml_set_attr,
};
-static void
-gui_qml_command(struct gui_priv *this_, char *function, struct attr **in, struct attr ***out, int *valid) {
+static void gui_qml_command(struct gui_priv *this_, char *function, struct attr **in, struct attr ***out, int *valid) {
this_->guiProxy->processCommand(function);
}