Skip to content

Commit 910b0fe

Browse files
committed
[LINT] error 62
Error -- Incompatible types (void/nonvoid) for operator ':' Signed-off-by: Jocelyn Legault <jocelynlegault@gmail.com>
1 parent 17bbc47 commit 910b0fe

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

PythonScript/src/PythonScript.cpp

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@ using namespace boost::python;
1919

2020
using namespace std;
2121

22-
#define CHECK_INITIALISED() (g_initialised ? 0 : initialisePython())
23-
22+
#define CHECK_INITIALIZED() if (!g_initialised) initialisePython()
2423

2524
/* Info for Notepad++ */
2625
CONST TCHAR PLUGIN_NAME[] = _T("Python Script");
@@ -372,7 +371,7 @@ extern "C" __declspec(dllexport) LRESULT messageProc(UINT message, WPARAM wParam
372371
case PYSCR_EXECSCRIPT:
373372
case PYSCR_EXECSTATEMENT:
374373
{
375-
CHECK_INITIALISED();
374+
CHECK_INITIALIZED();
376375
PythonScript_Exec* pse = reinterpret_cast<PythonScript_Exec*>(ci->info);
377376
if (pse->structVersion != 1)
378377
{
@@ -489,7 +488,7 @@ void runScript(int number)
489488

490489
void runStatement(const char *statement, bool synchronous, HANDLE completedEvent /* = NULL */, bool allowQueuing /* = false */)
491490
{
492-
CHECK_INITIALISED();
491+
CHECK_INITIALIZED();
493492
MenuManager::getInstance()->stopScriptEnabled(true);
494493
if (!pythonHandler->runScript(statement, synchronous, allowQueuing, completedEvent, true))
495494
{
@@ -538,7 +537,7 @@ void runScript(const char *filename, bool synchronous, HANDLE completedEvent /*
538537
}
539538
else
540539
{
541-
CHECK_INITIALISED();
540+
CHECK_INITIALIZED();
542541
MenuManager::getInstance()->stopScriptEnabled(true);
543542

544543
// TODO: Really need to not change this if it's a MSGTOPLUGIN run
@@ -566,7 +565,7 @@ void showConsole()
566565
{
567566
if (g_console)
568567
{
569-
CHECK_INITIALISED();
568+
CHECK_INITIALIZED();
570569
g_console->showDialog();
571570
}
572571
}

0 commit comments

Comments
 (0)