summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohnny Willemsen <jwillemsen@remedy.nl>2009-07-19 19:30:22 +0000
committerJohnny Willemsen <jwillemsen@remedy.nl>2009-07-19 19:30:22 +0000
commit7b120260a3c3a373340ad6b1d5a7f4302dfab525 (patch)
tree23c0badc28c6bfaf737665a4e1f243d037143f8d
parent3bacefeb6c9779ada8199ceca5314433e56975a7 (diff)
downloadATCD-7b120260a3c3a373340ad6b1d5a7f4302dfab525.tar.gz
-rw-r--r--CIAO/DAnCE/Plan_Launcher/Plan_Launcher.cpp2
-rw-r--r--CIAO/DAnCE/Plan_Launcher/Plan_Launcher.h2
-rw-r--r--CIAO/DAnCE/Plan_Launcher/Plan_Launcher_Base_Impl.cpp10
-rw-r--r--CIAO/DAnCE/Plan_Launcher/Plan_Launcher_Base_Impl.h2
4 files changed, 8 insertions, 8 deletions
diff --git a/CIAO/DAnCE/Plan_Launcher/Plan_Launcher.cpp b/CIAO/DAnCE/Plan_Launcher/Plan_Launcher.cpp
index c4034318279..c66c5ab3d7a 100644
--- a/CIAO/DAnCE/Plan_Launcher/Plan_Launcher.cpp
+++ b/CIAO/DAnCE/Plan_Launcher/Plan_Launcher.cpp
@@ -7,7 +7,7 @@ namespace DAnCE
namespace Plan_Launcher
{
int
- run_main_implementation (int argc, char *argv[])
+ run_main_implementation (int argc, ACE_TCHAR *argv[])
{
try
{
diff --git a/CIAO/DAnCE/Plan_Launcher/Plan_Launcher.h b/CIAO/DAnCE/Plan_Launcher/Plan_Launcher.h
index 54200926914..2fb68fe1110 100644
--- a/CIAO/DAnCE/Plan_Launcher/Plan_Launcher.h
+++ b/CIAO/DAnCE/Plan_Launcher/Plan_Launcher.h
@@ -19,7 +19,7 @@ namespace DAnCE
{
namespace Plan_Launcher
{
- int run_main_implementation (int, char*[]);
+ int run_main_implementation (int, ACE_TCHAR*[]);
}
}
diff --git a/CIAO/DAnCE/Plan_Launcher/Plan_Launcher_Base_Impl.cpp b/CIAO/DAnCE/Plan_Launcher/Plan_Launcher_Base_Impl.cpp
index ec616d35005..fe4ce357c45 100644
--- a/CIAO/DAnCE/Plan_Launcher/Plan_Launcher_Base_Impl.cpp
+++ b/CIAO/DAnCE/Plan_Launcher/Plan_Launcher_Base_Impl.cpp
@@ -458,7 +458,7 @@ void Plan_Launcher_Base_Impl::parse_args(int argc, ACE_TCHAR *argv[])
}
break;
case 't':
- this->plan_uuid_ = get_opt.opt_arg();
+ this->plan_uuid_ = ACE_TEXT_ALWAYS_CHAR (get_opt.opt_arg());
break;
case 'a':
this->dam_ior_ = expand_env_vars (get_opt.opt_arg());
@@ -515,13 +515,13 @@ void
Plan_Launcher_Base_Impl::stop_plan()
{
bool stopped = false;
- if (ACE_OS::strlen (this->plan_uuid_) > 0)
+ if (!is_empty (this->plan_uuid_))
{
stopped = true;
DANCE_DEBUG((LM_TRACE, DLINFO ACE_TEXT("Plan_Launcher_Base_Impl::stop_plan - ")
- ACE_TEXT("Stopping plan \"%C\"\n"), this->plan_uuid_));
+ ACE_TEXT("Stopping plan \"%C\"\n"), this->plan_uuid_.c_str ()));
- if (!this->teardown_plan(this->plan_uuid_))
+ if (!this->teardown_plan(this->plan_uuid_.c_str ()))
{
DANCE_ERROR ((LM_ERROR, DLINFO ACE_TEXT("Plan_Launcher_Base_Impl::stop_plan - ")
ACE_TEXT("tear down assembly failed: unknown plan uuid.\n")));
@@ -800,7 +800,7 @@ Plan_Launcher_Base_Impl::expand_env_vars (const ACE_TCHAR * s)
if (pos_end - pos_start > 1)
{
- ACE_Env_Value<const ACE_TCHAR*> val ((ACE_TCHAR *)src.substring (pos_start + 1, pos_end - pos_start - 1).c_str(), 0);
+ ACE_Env_Value<const char*> val (src.substring (pos_start + 1, pos_end - pos_start - 1).c_str(), 0);
res += val;
pos_done = pos_end;
}
diff --git a/CIAO/DAnCE/Plan_Launcher/Plan_Launcher_Base_Impl.h b/CIAO/DAnCE/Plan_Launcher/Plan_Launcher_Base_Impl.h
index bba73a979bd..15d393eeeba 100644
--- a/CIAO/DAnCE/Plan_Launcher/Plan_Launcher_Base_Impl.h
+++ b/CIAO/DAnCE/Plan_Launcher/Plan_Launcher_Base_Impl.h
@@ -97,7 +97,7 @@ public:
::DAnCE::ExecutionManagerDaemon_var em_;
ACE_Vector<ACE_CString> cdr_plan_urls_;
- ACE_TCHAR* plan_uuid_;
+ ACE_CString plan_uuid_;
ACE_CString em_ior_;
ACE_CString dam_ior_;
ACE_Vector<ACE_CString> xml_plan_urls_;