Skip to content

Commit

Permalink
Use anonymous namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
syyyr committed Feb 19, 2024
1 parent 9eaa6e1 commit de3a348
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion libshviotqt/src/rpc/localsocket.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ namespace shv::iotqt::rpc {
//======================================================
// LocalSocket
//======================================================
static QAbstractSocket::SocketState LocalSocket_convertState(QLocalSocket::LocalSocketState state)
namespace {
QAbstractSocket::SocketState LocalSocket_convertState(QLocalSocket::LocalSocketState state)
{
switch (state) {
case QLocalSocket::UnconnectedState:
Expand All @@ -25,6 +26,7 @@ static QAbstractSocket::SocketState LocalSocket_convertState(QLocalSocket::Local
}
return QAbstractSocket::UnconnectedState;
}
}

LocalSocket::LocalSocket(QLocalSocket *socket, Protocol protocol, QObject *parent)
: Super(parent)
Expand Down

0 comments on commit de3a348

Please sign in to comment.