forked from qt-creator/qt-creator
Debugger: Don't copy unnecessarily
Coverity-Id: 1525663 Change-Id: Ic6abd81fbf3255700aac8e08592a5a59f08ea4ab Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
@@ -1208,7 +1208,7 @@ void DebuggerToolTipManagerPrivate::slotTooltipOverrideRequested
|
||||
} else {
|
||||
|
||||
context.iname = "tooltip." + toHex(context.expression);
|
||||
auto reusable = [context](DebuggerToolTipHolder *tooltip) {
|
||||
auto reusable = [&context](DebuggerToolTipHolder *tooltip) {
|
||||
return tooltip->context.isSame(context);
|
||||
};
|
||||
DebuggerToolTipHolder *tooltip = Utils::findOrDefault(m_tooltips, reusable);
|
||||
|
Reference in New Issue
Block a user