Skip to content

Commit

Permalink
Fix QTcpSocket code on Qt4 (SIGNAL/SLOT macros are not type aware).
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-kristjansson authored and jyavenard committed Mar 8, 2013
1 parent 914442c commit bf04622
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions mythtv/libs/libmythbase/serverpool.cpp
Expand Up @@ -390,8 +390,8 @@ bool ServerPool::listen(QList<QHostAddress> addrs, quint16 port,
connect(server, &PrivTcpServer::newConnection,
this, &ServerPool::newTcpConnection);
#else
connect(server, SIGNAL(newConnection(int)),
this, SLOT(newTcpConnection(int)));
connect(server, SIGNAL(newConnection(qt_socket_fd_t)),
this, SLOT(newTcpConnection(qt_socket_fd_t)));
#endif
if (server->listen(*it, m_port))
{
Expand Down
4 changes: 2 additions & 2 deletions mythtv/libs/libmythprotoserver/mythsocketmanager.cpp
Expand Up @@ -101,8 +101,8 @@ bool MythSocketManager::Listen(int port)
connect(m_server, &MythServer::newConnection,
this, &MythSocketManager::newConnection);
#else
connect(m_server, SIGNAL(newConnection(int)),
this, SLOT(newConnection(int)));
connect(m_server, SIGNAL(newConnection(qt_socket_fd_t)),
this, SLOT(newConnection(qt_socket_fd_t)));
#endif
return true;
}
Expand Down

0 comments on commit bf04622

Please sign in to comment.