diff options
author | Pierre Ossman <ossman@cendio.se> | 2024-09-02 16:17:31 +0200 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2024-11-06 21:06:22 +0100 |
commit | 158eb92c4bc4ec7cdedabd9b192648627513c518 (patch) | |
tree | 61dd50a0bcae0c86459053fcc46c913dee81b701 /vncviewer/ServerDialog.cxx | |
parent | 067d0e89bf344609ec202f895252411c8fcaec1c (diff) | |
download | tigervnc-158eb92c4bc4ec7cdedabd9b192648627513c518.tar.gz tigervnc-158eb92c4bc4ec7cdedabd9b192648627513c518.zip |
Use static string for exceptions
In preparation for using the built in C++ exception classes, which do
not accept a format string.
Diffstat (limited to 'vncviewer/ServerDialog.cxx')
-rw-r--r-- | vncviewer/ServerDialog.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vncviewer/ServerDialog.cxx b/vncviewer/ServerDialog.cxx index 8622fff1..7b334bca 100644 --- a/vncviewer/ServerDialog.cxx +++ b/vncviewer/ServerDialog.cxx @@ -382,8 +382,8 @@ void ServerDialog::loadServerHistory() if (len == (sizeof(line) - 1)) { fclose(f); - throw Exception(_("Failed to read line %d in file %s: %s"), - lineNr, filepath, _("Line too long")); + throw Exception(format(_("Failed to read line %d in file %s: %s"), + lineNr, filepath, _("Line too long"))); } if ((len > 0) && (line[len-1] == '\n')) { |