summaryrefslogtreecommitdiff
path: root/TAO/tao/Tagged_Components.cpp
diff options
context:
space:
mode:
authorPhil Mesnier <mesnier_p@ociweb.com>2005-06-13 14:43:20 +0000
committerPhil Mesnier <mesnier_p@ociweb.com>2005-06-13 14:43:20 +0000
commitacdaf675f6cabe72cce4299b784405f2316782ce (patch)
treeb6d8c41f7b7acd467d214c3e861c9df6e6ced581 /TAO/tao/Tagged_Components.cpp
parent3965fe457f29e5b878f7f7f5354e02526ed9b929 (diff)
downloadATCD-acdaf675f6cabe72cce4299b784405f2316782ce.tar.gz
Changelog tag: Mon Jun 13 09:32:38 2005 Phil Mesnier <mesnier_p@ociweb.com>
Diffstat (limited to 'TAO/tao/Tagged_Components.cpp')
-rw-r--r--TAO/tao/Tagged_Components.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/TAO/tao/Tagged_Components.cpp b/TAO/tao/Tagged_Components.cpp
index e50a772526b..925a6f4d9d8 100644
--- a/TAO/tao/Tagged_Components.cpp
+++ b/TAO/tao/Tagged_Components.cpp
@@ -288,15 +288,14 @@ TAO_Tagged_Components::remove_component_i (IOP::ComponentId tag)
}
int
-TAO_Tagged_Components::get_component (IOP::TaggedComponent& component,
- CORBA::ULong start) const
+TAO_Tagged_Components::get_component (IOP::TaggedComponent& component) const
{
- for (CORBA::ULong i = start; i != this->components_.length (); ++i)
+ for (CORBA::ULong i = 0; i != this->components_.length (); ++i)
{
if (component.tag == this->components_[i].tag)
{
component = this->components_[i];
- return i+1;
+ return 1;
}
}