Mercurial > octave-libgccjit
diff libgui/src/m-editor/file-editor.cc @ 16307:f299079ed03a
avoid shadowed variable warning from GCC
* file-editor.cc (file_editor::handle_file_name_changed): Rename
arguments to avoid shadowed variable warning from GCC.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 14 Mar 2013 22:23:23 -0400 |
parents | 74ba79f79fcc |
children | f482302d81c9 |
line wrap: on
line diff
--- a/libgui/src/m-editor/file-editor.cc Thu Mar 14 23:49:34 2013 +0100 +++ b/libgui/src/m-editor/file-editor.cc Thu Mar 14 22:23:23 2013 -0400 @@ -431,7 +431,8 @@ } void -file_editor::handle_file_name_changed (const QString& fileName, const QString& toolTip) +file_editor::handle_file_name_changed (const QString& fname, + const QString& tip) { QObject *fileEditorTab = sender(); if (fileEditorTab) @@ -440,8 +441,8 @@ { if (_tab_widget->widget (i) == fileEditorTab) { - _tab_widget->setTabText (i, fileName); - _tab_widget->setTabToolTip (i, toolTip); + _tab_widget->setTabText (i, fname); + _tab_widget->setTabToolTip (i, tip); } } }