sg_netChat: let getTerminator return const char* for compatiblity with FlightGear

This commit is contained in:
Thomas Geymayer 2013-03-03 01:19:35 +01:00
parent 33e60725b1
commit c414242f13
2 changed files with 3 additions and 3 deletions

View File

@ -37,10 +37,10 @@ NetChat::setTerminator(const std::string& t)
bytesToCollect = -1;
}
const std::string&
const char*
NetChat::getTerminator() const
{
return terminator;
return terminator.c_str();
}

View File

@ -79,7 +79,7 @@ public:
{}
void setTerminator(const std::string& t);
const std::string& getTerminator() const;
const char* getTerminator() const;
/**
* set byte count to collect - 'foundTerminator' will be called once