Adds lint fixes

This commit is contained in:
Atul R 2020-02-14 02:10:04 +01:00
parent d50589143f
commit 373aae7452
3 changed files with 24 additions and 25 deletions

View File

@ -2,13 +2,13 @@
// From Qode headers
namespace qode {
typedef bool (*QodeInjectedRunLoopFunc)();
extern QodeInjectedRunLoopFunc qode_run_loop;
extern int qode_argc;
extern char **qode_argv;
extern void InjectQodeRunLoop(QodeInjectedRunLoopFunc runLoop);
}
typedef bool (*QodeInjectedRunLoopFunc)();
extern QodeInjectedRunLoopFunc qode_run_loop;
extern int qode_argc;
extern char **qode_argv;
extern void InjectQodeRunLoop(QodeInjectedRunLoopFunc runLoop);
} // namespace qode
namespace qodeIntegration {
void integrate();
void integrate();
}

View File

@ -1,26 +1,26 @@
#include "Extras/Utils/integration.h"
#include <QApplication>
#include <QFont>
namespace qodeIntegration {
static QApplication* app;
static QApplication* app;
bool QtRunLoopWrapper(){
app->exec();
return false;
}
bool QtRunLoopWrapper() {
app->exec();
return false;
}
void integrate() {
// Bootstrap Qt
app = new QApplication(qode::qode_argc, qode::qode_argv);
qode::InjectQodeRunLoop(&QtRunLoopWrapper);
// Other init settings
QFont f = QApplication::font();
if (f.defaultFamily().isEmpty()) {
f.setFamily("Sans-Serif");
QApplication::setFont(f);
}
void integrate() {
// Bootstrap Qt
app = new QApplication(qode::qode_argc, qode::qode_argv);
qode::InjectQodeRunLoop(&QtRunLoopWrapper);
// Other init settings
QFont f = QApplication::font();
if (f.defaultFamily().isEmpty()) {
f.setFamily("Sans-Serif");
QApplication::setFont(f);
}
}
}
} // namespace qodeIntegration

View File

@ -87,7 +87,6 @@ void* extrautils::configureQWidget(QWidget* widget, YGNodeRef node,
return configureQObject(widget);
}
Napi::FunctionReference NUtilsWrap::constructor;
Napi::Object NUtilsWrap::init(Napi::Env env, Napi::Object exports) {