Fix Coverity 'Uninitialized pointer fields' - member variables are now initialized

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13887 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2012-11-14 22:17:28 +00:00
commit fd24b188e2
8 changed files with 104 additions and 54 deletions

View file

@ -25,7 +25,6 @@ class D : public Language {
const String *empty_string;
const String *public_string;
const String *protected_string;
const String *static_string;
/*
* Files and file sections containing C/C++ code.
@ -274,7 +273,9 @@ public:
dmethods_seq(NULL),
dmethods_table(NULL),
n_dmethods(0),
unknown_types(NULL) {
unknown_types(NULL),
first_class_dmethod(0),
curr_class_dmethod(0) {
// For now, multiple inheritance with directors is not possible. It should be
// easy to implement though.