fix readability-identifier-length

This commit is contained in:
wmayer
2023-11-14 20:15:02 +01:00
parent 57a333e2b2
commit 9c7d00ffcb
38 changed files with 281 additions and 270 deletions

View File

@@ -85,12 +85,12 @@ Py::Object Translate::translate(const Py::Tuple& args)
char* context = nullptr;
char* source = nullptr;
char* disambiguation = nullptr;
int n = -1;
if (!PyArg_ParseTuple(args.ptr(), "ss|zi", &context, &source, &disambiguation, &n)) {
int num = -1;
if (!PyArg_ParseTuple(args.ptr(), "ss|zi", &context, &source, &disambiguation, &num)) {
throw Py::Exception();
}
QString str = QCoreApplication::translate(context, source, disambiguation, n);
QString str = QCoreApplication::translate(context, source, disambiguation, num);
return Py::asObject(PyUnicode_FromString(str.toUtf8()));
}