From d84866bd9a0e73dd75207ebcc93fbb5750dd5a21 Mon Sep 17 00:00:00 2001 From: Fabian Reister <fabian.reister@kit.edu> Date: Tue, 4 May 2021 14:58:53 +0200 Subject: [PATCH] const correctness (@simox) --- source/RobotAPI/libraries/core/remoterobot/RemoteRobot.cpp | 2 +- source/RobotAPI/libraries/core/remoterobot/RemoteRobot.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/source/RobotAPI/libraries/core/remoterobot/RemoteRobot.cpp b/source/RobotAPI/libraries/core/remoterobot/RemoteRobot.cpp index 99495ecee..91f158764 100644 --- a/source/RobotAPI/libraries/core/remoterobot/RemoteRobot.cpp +++ b/source/RobotAPI/libraries/core/remoterobot/RemoteRobot.cpp @@ -199,7 +199,7 @@ namespace armarx return this->_robot; } - std::string RemoteRobot::getName() + std::string RemoteRobot::getName() const { return _robot->getName(); } diff --git a/source/RobotAPI/libraries/core/remoterobot/RemoteRobot.h b/source/RobotAPI/libraries/core/remoterobot/RemoteRobot.h index 42970b7e7..b687f0e0f 100644 --- a/source/RobotAPI/libraries/core/remoterobot/RemoteRobot.h +++ b/source/RobotAPI/libraries/core/remoterobot/RemoteRobot.h @@ -168,7 +168,7 @@ namespace armarx /// Use this method to share the robot instance over Ice. SharedRobotInterfacePrx getSharedRobot() const; - std::string getName() override; + std::string getName() const override; /*! Creates a local robot that is synchronized once but not updated any more. You can use the synchronizeLocalClone method to update the joint values. -- GitLab