diff options
author | Dwayne Boone <dwayne@zeroc.com> | 2008-02-11 12:43:10 -0330 |
---|---|---|
committer | Dwayne Boone <dwayne@zeroc.com> | 2008-02-11 12:43:10 -0330 |
commit | 4d3d64f82ed21d1851b779ec56a6b77f24a91ab0 (patch) | |
tree | 642730b080ce51ff894d3a79cb587347449d7754 /cpp/src | |
parent | bug 2686 - php still using Ice::stringToIdentity (diff) | |
download | ice-4d3d64f82ed21d1851b779ec56a6b77f24a91ab0.tar.bz2 ice-4d3d64f82ed21d1851b779ec56a6b77f24a91ab0.tar.xz ice-4d3d64f82ed21d1851b779ec56a6b77f24a91ab0.zip |
Initialize a couple of bools
Diffstat (limited to 'cpp/src')
-rw-r--r-- | cpp/src/slice2freeze/Main.cpp | 4 | ||||
-rw-r--r-- | cpp/src/slice2freezej/Main.cpp | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/cpp/src/slice2freeze/Main.cpp b/cpp/src/slice2freeze/Main.cpp index 1ecea2fb397..4bf091353ab 100644 --- a/cpp/src/slice2freeze/Main.cpp +++ b/cpp/src/slice2freeze/Main.cpp @@ -1003,7 +1003,7 @@ writeDict(const string& n, UnitPtr& u, const Dict& dict, Output& H, Output& C, c return false; } - bool containsSequence; + bool containsSequence = false; if(!Dictionary::legalKeyType(valueType, containsSequence)) { cerr << n << ": `" << dict.value << "' is not a valid index type" << endl; @@ -1076,7 +1076,7 @@ writeDict(const string& n, UnitPtr& u, const Dict& dict, Output& H, Output& C, c TypePtr dataMemberType = dataMember->type(); - bool containsSequence; + bool containsSequence = false; if(!Dictionary::legalKeyType(dataMemberType, containsSequence)) { cerr << n << ": `" << index.member << "' cannot be used as an index" << endl; diff --git a/cpp/src/slice2freezej/Main.cpp b/cpp/src/slice2freezej/Main.cpp index e2b312d37ad..f8c51ab112b 100644 --- a/cpp/src/slice2freezej/Main.cpp +++ b/cpp/src/slice2freezej/Main.cpp @@ -254,7 +254,7 @@ FreezeGenerator::generate(UnitPtr& u, const Dict& dict) return false; } - bool containsSequence; + bool containsSequence = false; if(!Dictionary::legalKeyType(valueType, containsSequence)) { cerr << _prog << ": `" << dict.value << "' is not a valid index type" << endl; @@ -325,7 +325,7 @@ FreezeGenerator::generate(UnitPtr& u, const Dict& dict) TypePtr dataMemberType = dataMember->type(); - bool containsSequence; + bool containsSequence = false; if(!Dictionary::legalKeyType(dataMemberType, containsSequence)) { cerr << _prog << ": `" << index.member << "' cannot be used as an index" << endl; |