diff options
author | Ossama Othman <ossama-othman@users.noreply.github.com> | 2001-07-27 00:18:04 +0000 |
---|---|---|
committer | Ossama Othman <ossama-othman@users.noreply.github.com> | 2001-07-27 00:18:04 +0000 |
commit | c201c73893b200727723c93ce99216e2c01c1a24 (patch) | |
tree | cb2e169ee6e39a2efe4d19cd1b5138f864285e3a /TAO/tao/default_resource.cpp | |
parent | 3501c45f3c5dbd006e827d667d4e171e86d2703a (diff) | |
download | ATCD-c201c73893b200727723c93ce99216e2c01c1a24.tar.gz |
ChangeLogTag:Thu Jul 26 17:12:00 2001 Ossama Othman <ossama@uci.edu>
Diffstat (limited to 'TAO/tao/default_resource.cpp')
-rw-r--r-- | TAO/tao/default_resource.cpp | 21 |
1 files changed, 8 insertions, 13 deletions
diff --git a/TAO/tao/default_resource.cpp b/TAO/tao/default_resource.cpp index e796014d92e..08b52c3c2dd 100644 --- a/TAO/tao/default_resource.cpp +++ b/TAO/tao/default_resource.cpp @@ -378,7 +378,7 @@ TAO_Default_Resource_Factory::get_parser_names (char **&names, } // OK fallback on the hardcoded ones.... - this->parser_names_count_ = 4; /*HOW MANY DO WE HAVE?*/ + this->parser_names_count_ = 4; // HOW MANY DO WE HAVE? this->parser_names_ = new char *[this->parser_names_count_]; @@ -387,7 +387,9 @@ TAO_Default_Resource_Factory::get_parser_names (char **&names, ++i) this->parser_names_[i] = 0; - // Ensure that there is enough space in the parser_names_ array */ + // Ensure that there is enough space in the parser_names_ array + + size_t index = 0; // DLL_Parser TAO_IOR_Parser *tmp = @@ -406,12 +408,8 @@ TAO_Default_Resource_Factory::get_parser_names (char **&names, } } - int index = 0; - if (tmp != 0) - { - this->parser_names_[index] = CORBA::string_dup ("DLL_Parser"); - index++; - } + this->parser_names_[index] = CORBA::string_dup ("DLL_Parser"); + index++; // FILE_Parser tmp = @@ -430,12 +428,9 @@ TAO_Default_Resource_Factory::get_parser_names (char **&names, "Error Configuring FILE Parser\n"), -1); } } - if (tmp != 0) - { - this->parser_names_[index] = CORBA::string_dup ("FILE_Parser"); - index++; - } + this->parser_names_[index] = CORBA::string_dup ("FILE_Parser"); + index++; // CORBALOC_Parser tmp = |