瀏覽代碼

Don't reference specific variable in class

This class is generic and should not reference a specific instance of
it.
tags/v1.11.90
Pierre Ossman 2 年之前
父節點
當前提交
3ad5532e83
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3
    3
      vncviewer/MonitorIndicesParameter.cxx

+ 3
- 3
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<int> *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;
}
}

Loading…
取消
儲存