From 04574d03f5c5de2592f4f0636c05202cb74381a8 Mon Sep 17 00:00:00 2001 From: Oswald Buddenhagen Date: Tue, 28 Aug 2012 21:27:31 +0200 Subject: [PATCH] add Location::clear() Change-Id: Id61e3d0553f3ef236d3242ac89fe66fcfc04c755 Reviewed-by: Daniel Teske --- src/shared/proparser/qmakeevaluator.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/shared/proparser/qmakeevaluator.h b/src/shared/proparser/qmakeevaluator.h index a2b4b93ad91..5be1ef85a80 100644 --- a/src/shared/proparser/qmakeevaluator.h +++ b/src/shared/proparser/qmakeevaluator.h @@ -249,6 +249,7 @@ public: struct Location { Location() : pro(0), line(0) {} Location(ProFile *_pro, ushort _line) : pro(_pro), line(_line) {} + void clear() { pro = 0; line = 0; } ProFile *pro; ushort line; };