diff options
author | Dario Lombardo <lomato@gmail.com> | 2016-11-05 19:31:09 +0100 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2016-11-06 03:56:23 +0000 |
commit | 5ba5727ed8f7fa871bf99da20e9650ac9f206c38 (patch) | |
tree | f473f6d12380581150c4134c133a5edb003649a1 /ui/qt | |
parent | d7ef9461d3ae5b5a4ddea70846b1185f5c0bd83c (diff) |
Qt: move declaration inside ifdef.
Variable col is unused if compiled without extcap.
Change-Id: Iffc4951d4655e2649ecf350eefb09988370277e6
Reviewed-on: https://code.wireshark.org/review/18680
Reviewed-by: Roland Knall <rknall@gmail.com>
Petri-Dish: Roland Knall <rknall@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'ui/qt')
-rw-r--r-- | ui/qt/interface_tree_cache_model.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/qt/interface_tree_cache_model.cpp b/ui/qt/interface_tree_cache_model.cpp index 3e9b1c2294..e00e959b90 100644 --- a/ui/qt/interface_tree_cache_model.cpp +++ b/ui/qt/interface_tree_cache_model.cpp @@ -356,8 +356,8 @@ bool InterfaceTreeCacheModel::isAllowedToBeEdited(const QModelIndex &index) cons if ( device == 0 ) return false; - InterfaceTreeColumns col = (InterfaceTreeColumns) index.column(); #ifdef HAVE_EXTCAP + InterfaceTreeColumns col = (InterfaceTreeColumns) index.column(); if ( device->if_info.type == IF_EXTCAP ) { /* extcap interfaces do not have those settings */ |