summaryrefslogtreecommitdiff
path: root/TAO/TAO_IDL/ast/ast_decl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/TAO_IDL/ast/ast_decl.cpp')
-rw-r--r--TAO/TAO_IDL/ast/ast_decl.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/TAO/TAO_IDL/ast/ast_decl.cpp b/TAO/TAO_IDL/ast/ast_decl.cpp
index c0721b6a34b..dcc36e6cc99 100644
--- a/TAO/TAO_IDL/ast/ast_decl.cpp
+++ b/TAO/TAO_IDL/ast/ast_decl.cpp
@@ -871,6 +871,11 @@ AST_Decl::repoID (char *value)
}
this->repoID_ = value;
+
+ // Forces version to be set to the last id component.
+ delete [] this->version_;
+ this->version_ = 0;
+ (void) this->version ();
}
const char *
@@ -915,10 +920,6 @@ AST_Decl::version (void)
{
this->version_ = ACE::strnew (tail2 + 1);
}
- else
- {
- this->version_ = ACE::strnew ("1.0");
- }
}
return this->version_;