Skip to content

Commit

Permalink
compile.
Browse files Browse the repository at this point in the history
  • Loading branch information
Andersbakken committed Mar 16, 2015
1 parent d65eb8f commit 6b338a2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion rct/Connection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ bool Connection::send(const Message &message)
return false;
}

mAboutToSend(shared_from_this(), message);
mAboutToSend(shared_from_this(), &message);

const int size = message.encodedSize();
if (size == -1 || message.mFlags & Message::MessageCache) {
Expand Down
4 changes: 2 additions & 2 deletions rct/Connection.h
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ class Connection : public std::enable_shared_from_this<Connection>
Signal<std::function<void(std::shared_ptr<Connection>)> > &disconnected() { return mDisconnected; }
Signal<std::function<void(std::shared_ptr<Connection>)> > &error() { return mError; }
Signal<std::function<void(std::shared_ptr<Connection>, int)> > &finished() { return mFinished; }
Signal<std::function<void(std::shared_ptr<Connection>, Message)> > &aboutToSend() { return mAboutToSend; }
Signal<std::function<void(std::shared_ptr<Connection>, const Message *)> > &aboutToSend() { return mAboutToSend; }
Signal<std::function<void(std::shared_ptr<Message>, std::shared_ptr<Connection>)> > &newMessage() { return mNewMessage; }
SocketClient::SharedPtr client() const { return mSocketClient; }

Expand Down Expand Up @@ -120,7 +120,7 @@ class Connection : public std::enable_shared_from_this<Connection>
Signal<std::function<void(std::shared_ptr<Message>, std::shared_ptr<Connection>)> > mNewMessage;
Signal<std::function<void(std::shared_ptr<Connection>)> > mConnected, mDisconnected, mError, mSendFinished;
Signal<std::function<void(std::shared_ptr<Connection>, int)> > mFinished;
Signal<std::function<void(std::shared_ptr<Connection>, Message)> > mAboutToSend;
Signal<std::function<void(std::shared_ptr<Connection>, const Message *)> > mAboutToSend;

};

Expand Down

0 comments on commit 6b338a2

Please sign in to comment.