diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2020-01-30 20:17:32 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2020-01-30 23:58:41 +0900 |
commit | ce9614515fa863c4a66870f5288e417eceaf9106 (patch) | |
tree | 46822e581173d96db101d0c8521fa1730cd09602 /src/widgets/qmenubar.cpp | |
parent | cd2dc5026e152d6cf57895fe4f41cabdf2bb3eca (diff) | |
download | tqt-ce9614515fa863c4a66870f5288e417eceaf9106.tar.gz tqt-ce9614515fa863c4a66870f5288e417eceaf9106.zip |
Removed explicit usage of the 'register' keyword.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 99e56ba8db70324cc5c7ab416a3b48171613bd59)
Diffstat (limited to 'src/widgets/qmenubar.cpp')
-rw-r--r-- | src/widgets/qmenubar.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/widgets/qmenubar.cpp b/src/widgets/qmenubar.cpp index 8ee3cad20..d37982ef0 100644 --- a/src/widgets/qmenubar.cpp +++ b/src/widgets/qmenubar.cpp @@ -785,7 +785,7 @@ void TQMenuBar::hidePopups() bool anyVisible = FALSE; #endif TQMenuItemListIt it(*mitems); - register TQMenuItem *mi; + TQMenuItem *mi; while ( (mi=it.current()) ) { ++it; if ( mi->popup() && mi->popup()->isVisible() ) { @@ -1337,7 +1337,7 @@ void TQMenuBar::keyPressEvent( TQKeyEvent *e ) } if ( dx ) { // highlight next/prev - register int i = actItem; + int i = actItem; int c = mitems->count(); int n = c; while ( n-- ) { @@ -1362,7 +1362,7 @@ void TQMenuBar::keyPressEvent( TQKeyEvent *e ) TQMenuItem* currentSelected = 0; TQMenuItem* firstAfterCurrent = 0; - register TQMenuItem *m; + TQMenuItem *m; int indx = 0; int clashCount = 0; while ( (m=it.current()) ) { @@ -1534,7 +1534,7 @@ void TQMenuBar::setupAccelerators() autoaccel = 0; TQMenuItemListIt it(*mitems); - register TQMenuItem *mi; + TQMenuItem *mi; while ( (mi=it.current()) ) { ++it; if ( !mi->isEnabledAndVisible() ) // ### when we have a good solution for the accel vs. focus widget problem, remove that. That is only a workaround |