Skip to content

Commit cfed9b1

Browse files
committed
[LINT] error 1793
While calling ’Symbol’: Initializing the implicit object parameter ’Type’ (a non-const reference) with a non-lvalue. Somehow, this guy apparently slipped through the cracks on the first cleanup of the error. Signed-off-by: Jocelyn Legault <[email protected]>
1 parent 2516248 commit cfed9b1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

PythonScript/src/PythonConsole.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,8 @@ void PythonConsole::stopStatementWorker(PythonConsole *console)
271271

272272
void export_console()
273273
{
274+
//lint -e1793 While calling ’Symbol’: Initializing the implicit object parameter ’Type’ (a non-const reference) with a non-lvalue
275+
// The class and enum declarations are used as designed, but they mess up Lint.
274276
boost::python::class_<PythonConsole>("Console", boost::python::no_init)
275277
.def("write", &PythonConsole::writeText, "Writes text to the console. Uses the __str__ function of the object passed.")
276278
.def("clear", &PythonConsole::clear, "Clears the console window")
@@ -281,7 +283,7 @@ void export_console()
281283
.def("run", &PythonConsole::runCommandNoStderr, "Runs a command on the console")
282284
.def("run", &PythonConsole::runCommandNoStdout, "Runs a command on the console")
283285
.def_readonly("editor", &PythonConsole::mp_scintillaWrapper, "Gets an Editor object for the console window");
284-
286+
//lint +e1793
285287
}
286288

287289
void PythonConsole::openFile(const char *filename, int lineNo)

0 commit comments

Comments
 (0)