Skip to content

Commit

Permalink
Made connected() in TransportConnection immutable.
Browse files Browse the repository at this point in the history
  • Loading branch information
GamePad64 committed Dec 10, 2013
1 parent 777b61d commit c169efb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/daemon/transport/TransportConnection.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class TransportConnection : public std::enable_shared_from_this<TransportConnect
*/
virtual void process(std::string data);

virtual bool connected() = 0;
virtual bool connected() const = 0;

std::string getComponentName(){return "TransportConnection";}
};
Expand Down
2 changes: 1 addition & 1 deletion src/daemon/transport/udp/UDPTransportConnection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ void UDPTransportConnection::process(std::string data) {
this->TransportConnection::process(data);
}

bool UDPTransportConnection::connected() {
bool UDPTransportConnection::connected() const {
return m_connected;
}

Expand Down
2 changes: 1 addition & 1 deletion src/daemon/transport/udp/UDPTransportConnection.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class UDPTransportConnection : public TransportConnection {

virtual void send(std::string data);
virtual void process(std::string data);
virtual bool connected();
virtual bool connected() const;
};

} /* namespace transport */
Expand Down

0 comments on commit c169efb

Please sign in to comment.