diff --git a/VirtualRobot/Robot.cpp b/VirtualRobot/Robot.cpp index 4ded518edf76764c8e43ea2d0146b1b89e6f71cb..95bf6c2693e9eed9522e786b1cbba797ac012771 100644 --- a/VirtualRobot/Robot.cpp +++ b/VirtualRobot/Robot.cpp @@ -352,7 +352,7 @@ namespace VirtualRobot /** * \return VirtualRobot::Robot::name */ - std::string Robot::getName() + std::string Robot::getName() const { return name; } @@ -360,7 +360,7 @@ namespace VirtualRobot /** * \return VirtualRobot::Robot::type */ - std::string Robot::getType() + std::string Robot::getType() const { return type; } diff --git a/VirtualRobot/Robot.h b/VirtualRobot/Robot.h index 6eb0feffc80bc1a4f342fef1697358c2e73d3dae..b4c26e059514865557583a5421680bc2cf0709f7 100644 --- a/VirtualRobot/Robot.h +++ b/VirtualRobot/Robot.h @@ -118,8 +118,8 @@ namespace VirtualRobot void setupVisualization(bool showVisualization, bool showAttachedVisualizations) override; - virtual std::string getName(); - virtual std::string getType(); + virtual std::string getName() const; + virtual std::string getType() const; /*! Print status information.