From aad455e1ea34fa47099ee6b604a1e58bfaf015ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Tue, 21 Jul 2020 17:43:12 +0200 Subject: [PATCH] Fix compile error --- lib/errorlogger.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/errorlogger.cpp b/lib/errorlogger.cpp index d35e7edf9..081c9effb 100644 --- a/lib/errorlogger.cpp +++ b/lib/errorlogger.cpp @@ -165,7 +165,7 @@ ErrorMessage::ErrorMessage(const ErrorPath &errorPath, const TokenList *tokenLis std::ostringstream hashWarning; for (const ErrorPathItem &e: errorPath) - hashWarning << std::hex << (tok ? tok->index() : 0) << " "; + hashWarning << std::hex << (e.first ? e.first->index() : 0) << " "; hashWarning << mShortMessage; hash = calculateWarningHash(tokenList, hashWarning.str());