Skip to content

Commit

Permalink
Fixes to issues reported from codacy
Browse files Browse the repository at this point in the history
  • Loading branch information
slav-at-attachix committed Nov 6, 2018
1 parent fdfca22 commit 67a289c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ int WebsocketResource::checkHeaders(HttpServerConnection& connection, HttpReques

void WebsocketResource::shutdown(HttpServerConnection& connection)
{
WebsocketConnection* socket = (WebsocketConnection*)connection.userData;
WebsocketConnection* socket = static_cast<WebsocketConnection*>(connection.userData);
delete socket;
connection.userData = NULL;
connection.setTimeOut(1);
Expand Down
2 changes: 1 addition & 1 deletion Sming/SmingCore/Network/WebsocketClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ WebsocketClient::~WebsocketClient()

HttpConnection* WebsocketClient::getHttpConnection()
{
HttpConnection* connection = (HttpConnection*)WebsocketConnection::getConnection();
HttpConnection* connection = static_cast<HttpConnection*>(WebsocketConnection::getConnection());
if(!connection && state == eWSCS_Closed) {
connection = new HttpConnection(new RequestQueue());
setConnection(connection);
Expand Down

0 comments on commit 67a289c

Please sign in to comment.