revisions

This commit is contained in:
pls.153 2023-04-30 19:01:36 +02:00
parent 2a86bcc655
commit 06020d342f
5 changed files with 22 additions and 4 deletions

View file

@ -291,7 +291,7 @@ cl_object qload_cpp(cl_object l_lib_name, cl_object l_unload) { /// qload-c++
}
return ECL_NIL;
}
if (!lib) {
if (lib == nullptr) {
lib = new QLibrary(libName);
libraries[libName] = lib;
}

View file

@ -463,7 +463,7 @@ QVariant ecl_fun(const QByteArray& pkgFun,
// 'ecl_fun("cl:format", ...);' to prevent useless error messages from ECL
// like "the function NIL is undefined"
void* symbol = lisp_functions.value(pkgFun);
if (!symbol) {
if (symbol == nullptr) {
int p = pkgFun.indexOf(':');
QByteArray pkg = (p == -1) ? "qml-user" : pkgFun.left(p);
QByteArray fun = pkgFun.mid(pkgFun.lastIndexOf(':') + 1);

View file

@ -41,7 +41,7 @@ QVariant ecl_fun(const QByteArray& pkgFun,
const QVariant& a15,
const QVariant& a16) {
void* symbol = lisp_functions.value(pkgFun);
if (!symbol) {
if (symbol == nullptr) {
int p = pkgFun.indexOf(':');
QByteArray pkg = (p == -1) ? "qml-user" : pkgFun.left(p);
QByteArray fun = pkgFun.mid(pkgFun.lastIndexOf(':') + 1);