forked from qt-creator/qt-creator
Debugger: Fix scoping bug in watch handler.
Found by clang static analyzer. Change-Id: Ib25232b26c314d4da4707f7903f1b75b907b241d Reviewed-by: hjk <hjk@theqtcompany.com>
This commit is contained in:
@@ -2042,7 +2042,7 @@ int WatchHandler::format(const QByteArray &iname) const
|
||||
{
|
||||
int result = AutomaticFormat;
|
||||
if (const WatchData *item = m_model->findItem(iname)) {
|
||||
int result = theIndividualFormats.value(item->iname, AutomaticFormat);
|
||||
result = theIndividualFormats.value(item->iname, AutomaticFormat);
|
||||
if (result == AutomaticFormat)
|
||||
result = theTypeFormats.value(stripForFormat(item->type), AutomaticFormat);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user