From f6848f14ade4bf5bcaa78cc066dfe7901c5879ba Mon Sep 17 00:00:00 2001 From: Reijo Tomperi Date: Sun, 1 Mar 2009 19:38:17 +0000 Subject: [PATCH] Fixed another --style problem with our code --- src/errorlogger.h | 4 ++++ tools/errmsg.cpp | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/src/errorlogger.h b/src/errorlogger.h index f6d58d8a9..89a48c56d 100644 --- a/src/errorlogger.h +++ b/src/errorlogger.h @@ -47,6 +47,10 @@ public: class FileLocation { public: + FileLocation() + { + line = 0; + } std::string file; unsigned int line; }; diff --git a/tools/errmsg.cpp b/tools/errmsg.cpp index f52a10be3..b286740bd 100644 --- a/tools/errmsg.cpp +++ b/tools/errmsg.cpp @@ -173,6 +173,10 @@ int main() fout << " class FileLocation\n"; fout << " {\n"; fout << " public:\n"; + fout << " FileLocation()\n"; + fout << " {\n"; + fout << " line = 0;\n"; + fout << " }\n"; fout << " std::string file;\n"; fout << " unsigned int line;\n"; fout << " };\n";