changeset 25634:6ff900fd15cb

avoid shadowed variable warning * file-editor.cc (file_editor::request_open_file): Eliminate duplicate settings variable.
author John W. Eaton <jwe@octave.org>
date Mon, 16 Jul 2018 16:28:59 -0400
parents f89bf246dcd4
children be45013e7794
files libgui/src/m-editor/file-editor.cc
diffstat 1 files changed, 0 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libgui/src/m-editor/file-editor.cc	Wed Jul 18 08:07:36 2018 -0400
+++ b/libgui/src/m-editor/file-editor.cc	Mon Jul 16 16:28:59 2018 -0400
@@ -1306,7 +1306,6 @@
                         // File does not exist, should it be created?
                         bool create_file = true;
                         QMessageBox *msgBox;
-                        QSettings *settings = resource_manager::get_settings ();
 
                         if (! settings->value ("editor/create_new_file", false).toBool ())
                           {