diff options
author | Marcus Fritzsch <marcus_fritzsch@mentor.com> | 2017-06-26 12:16:00 +0200 |
---|---|---|
committer | Marcus Fritzsch <marcus_fritzsch@mentor.com> | 2017-08-08 17:24:00 +0200 |
commit | 02698c25c7c553b6293b42fc28753c7578745dcd (patch) | |
tree | c813e7cf6a0b6b8c0a2efdc57169a89f3dee5ea6 | |
parent | 4312bcdc2121c0e6f97290f6c03fe42bdb1c1a58 (diff) |
main: use auto variables where appropriate and sensible
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
-rw-r--r-- | src/main.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main.cpp b/src/main.cpp index d01950b..9b2f48a 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -46,8 +46,8 @@ int check_events(struct wl::display *d, struct conn *c, int fd) { if (!c->c->surfaces.empty()) { puts("Surfaces:"); for (auto const &i : c->c->surfaces) { - struct genivi::rect const &r = i.second->dst_rect; - struct genivi::size const &s = i.second->size; + auto const &r = i.second->dst_rect; + auto const &s = i.second->size; printf("%d [%ux%u] (%ux%u@%dx%d), ", i.first, s.w, s.h, r.w, r.h, r.x, r.y); } @@ -57,8 +57,8 @@ int check_events(struct wl::display *d, struct conn *c, int fd) { if (!c->c->layers.empty()) { puts("Layers:"); for (auto const &i : c->c->layers) { - struct genivi::rect const &r = i.second->dst_rect; - struct genivi::size const &s = i.second->size; + auto const &r = i.second->dst_rect; + auto const &s = i.second->size; printf("%d [%ux%u] (%ux%u@%dx%d), ", i.first, s.w, s.h, r.w, r.h, r.x, r.y); } |