Mercurial > hg > octave-nkf
changeset 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 | 4a3b6a80db2e |
children | 122c1a7a3004 |
files | libgui/src/m-editor/file-editor.cc |
diffstat | 1 files changed, 4 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/libgui/src/m-editor/file-editor.cc +++ b/libgui/src/m-editor/file-editor.cc @@ -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); } } }