revisions

This commit is contained in:
pls.153 2023-02-25 12:08:53 +01:00
parent c7d631697a
commit 45d6984bec
5 changed files with 12 additions and 10 deletions

View file

@ -360,8 +360,8 @@ cl_object qexec2(cl_object l_milliseconds) {
/// after which QEventLoop::exit() will be called. See also QSLEEP.
ecl_process_env()->nvalues = 1;
if (l_milliseconds != ECL_NIL) {
static QTimer* timer = 0;
if (!timer) {
static QTimer* timer = nullptr;
if (timer == nullptr) {
timer = new QTimer;
LQML::eventLoop = new QEventLoop;
timer->setSingleShot(true);
@ -815,7 +815,7 @@ cl_object qapropos2(cl_object l_search, cl_object l_obj, cl_object l_no_offset)
search = toCString(l_search);
}
bool no_offset = (l_no_offset != ECL_NIL); // for QML (all instance properties)
const QMetaObject* mo = 0;
const QMetaObject* mo = nullptr;
QObject* obj = toQObjectPointer(l_obj);
if (obj != nullptr) {
mo = obj->metaObject();

View file

@ -31,7 +31,7 @@ QVariant Lisp::call(const QJSValue& caller_or_function,
const QJSValue& arg14,
const QJSValue& arg15,
const QJSValue& arg16) {
QObject* caller = 0;
QObject* caller = nullptr;
QString function;
QVariantList arguments;
if (caller_or_function.isQObject()) {
@ -97,7 +97,7 @@ QVariant Lisp::call(const QJSValue& caller_or_function,
QVariant Lisp::apply(const QJSValue& caller_or_function,
const QJSValue& function_or_arguments,
const QJSValue& arguments_or_undefined) {
QObject* caller = 0;
QObject* caller = nullptr;
QString function;
QVariantList arguments;
if (caller_or_function.isQObject()) {