Commit 9dee300b authored by Christian Kandeler's avatar Christian Kandeler Committed by hjk
Browse files

Debugger: Fix scoping bug in watch handler.

Found by clang static analyzer.

Change-Id: Ib25232b26c314d4da4707f7903f1b75b907b241d
Reviewed-by: default avatarhjk <>
parent 64cc15bc
......@@ -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);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment