Skip to content

Commit 5d5bb2d

Browse files
committed
const correctness
1 parent b968803 commit 5d5bb2d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/viam/sdk/rpc/dial.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ std::shared_ptr<ViamChannel> ViamChannel::dial(const char* uri,
156156
throw Exception(ErrorCondition::k_connection, "Unable to establish connecting path");
157157
}
158158

159-
std::string localhost_prefix("127.0.0.1");
159+
const std::string localhost_prefix("127.0.0.1");
160160
std::string address;
161161
if (std::string(proxy_path).find(localhost_prefix) == std::string::npos) {
162162
// proxy path is not a localhost address and is therefore a unix domain socket (UDS)

0 commit comments

Comments
 (0)