From 0b7686d2be30c0ac2e3e372018156d8c736ddda0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Tue, 5 Jun 2007 18:02:34 +0000 Subject: [PATCH] CheckHeaders: Minor update --- CheckHeaders.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CheckHeaders.cpp b/CheckHeaders.cpp index c9f1df27d..49a2c26bf 100644 --- a/CheckHeaders.cpp +++ b/CheckHeaders.cpp @@ -113,6 +113,8 @@ void WarningIncludeHeader() Needed |= match(tok2, classname + " ::"); Needed |= match(tok2, classname + " var"); NeedDeclaration |= match(tok2, classname + " *"); + if (Needed | NeedDeclaration) + break; } if (Needed | NeedDeclaration)