summaryrefslogtreecommitdiffstats
path: root/Source/cmListFileCache.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2008-10-11 16:02:50 (GMT)
committerBrad King <brad.king@kitware.com>2008-10-11 16:02:50 (GMT)
commit4db6658d8fd6c4f0ff4308e48965fbba08caa73c (patch)
treeab86a96cb88c0e48e2e85bbfa5ef0f028a3bc2fa /Source/cmListFileCache.h
parenta4cc35021b95e3005818f74fa9cf1242cc97dced (diff)
downloadCMake-4db6658d8fd6c4f0ff4308e48965fbba08caa73c.zip
CMake-4db6658d8fd6c4f0ff4308e48965fbba08caa73c.tar.gz
CMake-4db6658d8fd6c4f0ff4308e48965fbba08caa73c.tar.bz2
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.
Diffstat (limited to 'Source/cmListFileCache.h')
-rw-r--r--Source/cmListFileCache.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/cmListFileCache.h b/Source/cmListFileCache.h
index b5d8a05..ac6e023 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&);