diff options
author | Norwegian Rock Cat <qt-info@nokia.com> | 2009-07-14 08:38:45 (GMT) |
---|---|---|
committer | Norwegian Rock Cat <qt-info@nokia.com> | 2009-07-14 09:18:23 (GMT) |
commit | 43d2ed37baf0f5d05ffe06a91ea4782b9694a1d3 (patch) | |
tree | c23f86e27abf3094d852c5d378993544e67f6193 /src/gui/widgets/qcocoatoolbardelegate_mac.mm | |
parent | 4993acb83e7b9e118bfad45f02864a26013797f5 (diff) | |
download | Qt-43d2ed37baf0f5d05ffe06a91ea4782b9694a1d3.zip Qt-43d2ed37baf0f5d05ffe06a91ea4782b9694a1d3.tar.gz Qt-43d2ed37baf0f5d05ffe06a91ea4782b9694a1d3.tar.bz2 |
Remove this foundItem boolean.
Found while documenting this internally.
I guess I had a reason for it at one point, but it
seems that I'm more concerned about what index. So
just get rid of this.
Diffstat (limited to 'src/gui/widgets/qcocoatoolbardelegate_mac.mm')
-rw-r--r-- | src/gui/widgets/qcocoatoolbardelegate_mac.mm | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/gui/widgets/qcocoatoolbardelegate_mac.mm b/src/gui/widgets/qcocoatoolbardelegate_mac.mm index 865069e..10fe9b0 100644 --- a/src/gui/widgets/qcocoatoolbardelegate_mac.mm +++ b/src/gui/widgets/qcocoatoolbardelegate_mac.mm @@ -120,12 +120,9 @@ QT_FORWARD_DECLARE_CLASS(QCFString); NSArray *items = [[qt_mac_window_for(mainWindowLayout->layoutState.mainWindow->window()) toolbar] items]; int someIndex = 0; - bool foundItem = false; for (NSToolbarItem *i in items) { - if (i == item) { - foundItem = true; + if (i == item) break; - } ++someIndex; } mainWindowLayout->toolbarItemsCopy.insert(someIndex, item); |