diff libgui/src/m-editor/file-editor.cc @ 15894:9cd14e53e906

eliminate some compiler warnings for GUI code * QTerminalInterface.h (QTerminalInterface::QTerminalInterface): Eliminate shadow variable warning. * QTerminal.h (QTerminal::Qterminal): Likewise. * history-dockwidget.cc (history_dock_widget::ctxMenu): Likewise. (history_dock_widget::handle_contextmenu_copy, history_dock_widget::handle_contextmenu_evaluate): Eliminate unused variable warning. * file-editor-tab.cc (file_editor_tab::check_file_modified): Eliminate unsed variable warning. (file_editor_tab::nmotice_settings) Eliminate shadow variable warnings. * file-editor.cc (file_editor::construct): Comment out unsed variable. * main-window.cc (main_window::notice_settings): Move definition of WIDGET_ICON_SET_PREFIX here. * resource-manager.h: From here.
author John W. Eaton <jwe@octave.org>
date Thu, 03 Jan 2013 17:40:43 -0500
parents 7d300b85ee25
children 927b121ad63f
line wrap: on
line diff
--- a/libgui/src/m-editor/file-editor.cc
+++ b/libgui/src/m-editor/file-editor.cc
@@ -511,7 +511,9 @@
 file_editor::construct ()
 {
   QWidget *editor_widget = new QWidget (this);
-  QStyle *editor_style = QApplication::style ();
+
+  // FIXME -- what was the intended purpose of this unused variable?
+  // QStyle *editor_style = QApplication::style ();
 
   _menu_bar = new QMenuBar (editor_widget);
   _tool_bar = new QToolBar (editor_widget);