diff options
author | Pierre Ossman <ossman@cendio.se> | 2023-01-10 19:26:48 +0100 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2023-02-04 14:03:13 +0100 |
commit | 741300728a889b4ccaec35bd57efb072018c860c (patch) | |
tree | 1531c90303a6379a89966946c7e341fafb8ec18f /win/winvnc/VNCServerWin32.cxx | |
parent | 77f0a61ec8f1488d6042b1370444bb2612604292 (diff) | |
download | tigervnc-741300728a889b4ccaec35bd57efb072018c860c.tar.gz tigervnc-741300728a889b4ccaec35bd57efb072018c860c.zip |
Use StringParameters directly
We don't need to make extra copies of the string in most cases, so let's
simplify the code and access the string directly when we can.
Diffstat (limited to 'win/winvnc/VNCServerWin32.cxx')
-rw-r--r-- | win/winvnc/VNCServerWin32.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/win/winvnc/VNCServerWin32.cxx b/win/winvnc/VNCServerWin32.cxx index 70f82ff0..55efabe1 100644 --- a/win/winvnc/VNCServerWin32.cxx +++ b/win/winvnc/VNCServerWin32.cxx @@ -151,8 +151,7 @@ void VNCServerWin32::regConfigChanged() { rfbSock.setPort(port_number, localHost); // -=- Update the TCP address filter for both ports, if open. - CharArray pattern(hosts.getData()); - rfbSock.setFilter(pattern.buf); + rfbSock.setFilter(hosts); // -=- Update the tray icon tooltip text with IP addresses processAddressChange(); |