summaryrefslogtreecommitdiffstats
path: root/include/ingen/client
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2023-05-12 09:58:30 -0400
committerDavid Robillard <d@drobilla.net>2023-05-12 09:58:30 -0400
commitc076e93136799096da613950eb14e7d5fbe9375a (patch)
tree5f681c9bf3982a01611cd032863d68612fd52174 /include/ingen/client
parent21d99ff04daafae8fbd03f612c1b8ee070d0d950 (diff)
downloadingen-c076e93136799096da613950eb14e7d5fbe9375a.tar.gz
ingen-c076e93136799096da613950eb14e7d5fbe9375a.tar.bz2
ingen-c076e93136799096da613950eb14e7d5fbe9375a.zip
Fix const correctness
Diffstat (limited to 'include/ingen/client')
-rw-r--r--include/ingen/client/SocketClient.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/ingen/client/SocketClient.hpp b/include/ingen/client/SocketClient.hpp
index 3dc00d6f..7434da90 100644
--- a/include/ingen/client/SocketClient.hpp
+++ b/include/ingen/client/SocketClient.hpp
@@ -66,7 +66,7 @@ public:
? raul::Socket::Type::UNIX
: raul::Socket::Type::TCP);
- std::shared_ptr<raul::Socket> sock(new raul::Socket(type));
+ const std::shared_ptr<raul::Socket> sock{new raul::Socket(type)};
if (!sock->connect(uri)) {
world.log().error("Failed to connect <%1%> (%2%)\n",
sock->uri(), strerror(errno));