From 741300728a889b4ccaec35bd57efb072018c860c Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Tue, 10 Jan 2023 19:26:48 +0100 Subject: 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. --- vncviewer/vncviewer.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'vncviewer/vncviewer.cxx') 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 } -- cgit v1.2.3