From 4db6658d8fd6c4f0ff4308e48965fbba08caa73c Mon Sep 17 00:00:00 2001 From: Brad King Date: Sat, 11 Oct 2008 12:02:50 -0400 Subject: [PATCH] BUG: Make sure context info is always initialized This adds a missing default constructor to cmListFileContext that makes sure the line number is initialized to zero. A zero line number will indicate a generated context. --- Source/cmListFileCache.h | 1 + 1 file changed, 1 insertion(+) diff --git a/Source/cmListFileCache.h b/Source/cmListFileCache.h index b5d8a0520..ac6e02324 100644 --- a/Source/cmListFileCache.h +++ b/Source/cmListFileCache.h @@ -55,6 +55,7 @@ struct cmListFileContext std::string Name; std::string FilePath; long Line; + cmListFileContext(): Name(), FilePath(), Line(0) {} }; std::ostream& operator<<(std::ostream&, cmListFileContext const&);