diff options
author | Michele Calgaro <[email protected]> | 2020-01-30 20:17:32 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2020-01-30 23:58:41 +0900 |
commit | ce9614515fa863c4a66870f5288e417eceaf9106 (patch) | |
tree | 46822e581173d96db101d0c8521fa1730cd09602 /src/widgets/qmenudata.cpp | |
parent | cd2dc5026e152d6cf57895fe4f41cabdf2bb3eca (diff) | |
download | tqt3-ce9614515fa863c4a66870f5288e417eceaf9106.tar.gz tqt3-ce9614515fa863c4a66870f5288e417eceaf9106.zip |
Removed explicit usage of the 'register' keyword.
Signed-off-by: Michele Calgaro <[email protected]>
(cherry picked from commit 99e56ba8db70324cc5c7ab416a3b48171613bd59)
Diffstat (limited to 'src/widgets/qmenudata.cpp')
-rw-r--r-- | src/widgets/qmenudata.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/widgets/qmenudata.cpp b/src/widgets/qmenudata.cpp index ef385ab16..969c097b6 100644 --- a/src/widgets/qmenudata.cpp +++ b/src/widgets/qmenudata.cpp @@ -260,7 +260,7 @@ int TQMenuData::insertAny( const TQString *text, const TQPixmap *pixmap, if ( id < 0 ) // -2, -3 etc. id = get_seq_id(); - register TQMenuItem *mi = new TQMenuItem; + TQMenuItem *mi = new TQMenuItem; TQ_CHECK_PTR( mi ); mi->ident = id; if ( widget != 0 ) { @@ -842,7 +842,7 @@ void TQMenuData::removeItemAt( int index ) void TQMenuData::clear() { - register TQMenuItem *mi = mitems->first(); + TQMenuItem *mi = mitems->first(); while ( mi ) { if ( mi->popup_menu ) menuDelPopup( mi->popup_menu ); @@ -1041,7 +1041,7 @@ void TQMenuData::changeItem( int id, const TQPixmap &pixmap ) TQMenuData *parent; TQMenuItem *mi = findItem( id, &parent ); if ( mi ) { // item found - register TQPixmap *i = mi->pixmap_data; + TQPixmap *i = mi->pixmap_data; bool fast_refresh = i != 0 && i->width() == pixmap.width() && i->height() == pixmap.height() && @@ -1103,7 +1103,7 @@ void TQMenuData::changeItemIconSet( int id, const TQIconSet &icon ) TQMenuData *parent; TQMenuItem *mi = findItem( id, &parent ); if ( mi ) { // item found - register TQIconSet *i = mi->iconset_data; + TQIconSet *i = mi->iconset_data; bool fast_refresh = i != 0; if ( !icon.isNull() ) mi->iconset_data = new TQIconSet( icon ); |