From 4559891f1d9f97d5aad501431174b6295bf3755d Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Fri, 21 Sep 2012 18:02:30 -0400 Subject: [PATCH] might as well use auto with g_array_index --- termite.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/termite.cc b/termite.cc index 2b5fd04..cefa778 100644 --- a/termite.cc +++ b/termite.cc @@ -110,7 +110,7 @@ static void find_urls(VteTerminal *vte, search_panel_info *panel_info) { g_match_info_fetch_pos(info, 0, &pos, NULL); const long first_row = g_array_index(attributes, vte_char_attributes, 0).row; - const vte_char_attributes attr = g_array_index(attributes, vte_char_attributes, token + pos - content); + const auto attr = g_array_index(attributes, vte_char_attributes, token + pos - content); panel_info->url_list.push_back(url_data{g_match_info_fetch(info, 0), attr.column,