From 02698c25c7c553b6293b42fc28753c7578745dcd Mon Sep 17 00:00:00 2001 From: Marcus Fritzsch Date: Mon, 26 Jun 2017 12:16:00 +0200 Subject: main: use auto variables where appropriate and sensible Signed-off-by: Marcus Fritzsch --- src/main.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/main.cpp') 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); } -- cgit 1.2.3-korg