diff options
author | Brad King <brad.king@kitware.com> | 2008-10-11 16:02:50 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2008-10-11 16:02:50 (GMT) |
commit | 4db6658d8fd6c4f0ff4308e48965fbba08caa73c (patch) | |
tree | ab86a96cb88c0e48e2e85bbfa5ef0f028a3bc2fa /Source/cmListFileCache.h | |
parent | a4cc35021b95e3005818f74fa9cf1242cc97dced (diff) | |
download | CMake-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.h | 1 |
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&); |