Commit 970930c5 authored by Joseph Mirabel's avatar Joseph Mirabel Committed by Joseph Mirabel
Browse files

Remove unnecessary const_cast

parent 48bf3912
......@@ -22,14 +22,13 @@ typedef hpp::wholebodyStep::ProblemSolverPtr_t ProblemSolverPtr_t;
typedef hpp::wholebodyStep::ProblemSolver ProblemSolver;
using hpp::wholebodyStep::SmallSteps;
int main (int argc, char* argv[])
int main (int argc, const char* argv[])
ProblemSolverPtr_t problemSolver = ProblemSolver::create ();
hpp::core::PathOptimizerBuilder_t optimizer (SmallSteps::create);
problemSolver->add ("Walkgen", optimizer);
CorbaServer corbaServer (problemSolver, argc,
const_cast<const char**> (argv), true);
WholebodyServer wbsServer (argc, const_cast<const char**> (argv), true);
CorbaServer corbaServer (problemSolver, argc, argv, true);
WholebodyServer wbsServer (argc, argv, true);
wbsServer.setProblemSolverMap (corbaServer.problemSolverMap());
try {
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment