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 /vncviewer/vncviewer.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 'vncviewer/vncviewer.cxx')
-rw-r--r-- | vncviewer/vncviewer.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vncviewer/vncviewer.cxx b/vncviewer/vncviewer.cxx index 529f2f30..549a9bed 100644 --- a/vncviewer/vncviewer.cxx +++ b/vncviewer/vncviewer.cxx @@ -742,7 +742,7 @@ int main(int argc, char** argv) #ifndef WIN32 /* Specifying -via and -listen together is nonsense */ - if (listenMode && strlen(via.getValueStr()) > 0) { + if (listenMode && strlen(via) > 0) { // TRANSLATORS: "Parameters" are command line arguments, or settings // from a file or the Windows registry. vlog.error(_("Parameters -listen and -via are incompatible")); @@ -809,7 +809,7 @@ int main(int argc, char** argv) } #ifndef WIN32 - if (strlen (via.getValueStr()) > 0 && mktunnel() != 0) + if (strlen(via) > 0 && mktunnel() != 0) usage(argv[0]); #endif } |