From 3ad5532e8368ec43d273cb7818982afa25811030 Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Mon, 19 Jul 2021 17:31:45 +0200 Subject: [PATCH] Don't reference specific variable in class This class is generic and should not reference a specific instance of it. --- vncviewer/MonitorIndicesParameter.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vncviewer/MonitorIndicesParameter.cxx b/vncviewer/MonitorIndicesParameter.cxx index ebfc994a..651d636b 100644 --- a/vncviewer/MonitorIndicesParameter.cxx +++ b/vncviewer/MonitorIndicesParameter.cxx @@ -75,7 +75,7 @@ bool MonitorIndicesParameter::setParam(const char* value) return false; if (!parseIndices(value, &indices)) { - vlog.error(_("Invalid FullScreenSelectedMonitors configuration")); + vlog.error(_("Invalid configuration specified for %s"), name); return false; } @@ -162,13 +162,13 @@ bool MonitorIndicesParameter::parseIndices(const char* value, std::set *ind current.push_back(d); else if (d == ',') { if (!parseNumber(current, indices)) { - vlog.error(_("Invalid monitor index '%s' in FullScreenSelectedMonitors"), current.c_str()); + vlog.error(_("Invalid monitor index '%s'"), current.c_str()); return false; } current.clear(); } else { - vlog.error(_("Unexpected character '%c' in FullScreenSelectedMonitors"), d); + vlog.error(_("Unexpected character '%c'"), d); return false; } } -- 2.39.5