1
0
Fork 0

accomodate changed getDisplayName interface in yasim::Hitch

This commit is contained in:
timoore 2009-07-15 23:16:05 +00:00 committed by Tim Moore
parent 5cf18d30c6
commit ca3bd1c309
2 changed files with 5 additions and 3 deletions

View file

@ -224,12 +224,12 @@ void Hitch::setForceIsCalculatedByOther(bool b)
_forceIsCalculatedByMaster=b;
}
const char *Hitch::getConnectedPropertyNode() const
std::string Hitch::getConnectedPropertyNode() const
{
if (_towEndNode)
return _towEndNode->getDisplayName();
else
return 0;
return std::string("");
}
void Hitch::setConnectedPropertyNode(const char *nodename)

View file

@ -1,6 +1,8 @@
#ifndef _HITCH_HPP
#define _HITCH_HPP
#include <string>
#include <Main/fg_props.hxx>
namespace yasim {
@ -48,7 +50,7 @@ public:
void integrate (float dt);
const char *getConnectedPropertyNode() const;
std::string getConnectedPropertyNode() const;
void setConnectedPropertyNode(const char *nodename);
private: