Commit 1bcbbbff authored by Jan Möbius's avatar Jan Möbius

Trying to get rid of some cppcheck warnings


git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@16834 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 5de3cdc8
......@@ -73,7 +73,9 @@ ScriptingPlugin::ScriptingPlugin() :
lastFile_(""),
debuggerButton_(0)
#ifdef ENABLE_SCRIPT_DEBUGGER
#ifdef QT_SCRIPTTOOLS_LIB
,debugger_(0)
#endif
#endif
{
......@@ -219,12 +221,14 @@ void ScriptingPlugin::pluginsInitialized() {
// ==================================================================
#ifdef ENABLE_SCRIPT_DEBUGGER
#ifdef QT_SCRIPTTOOLS_LIB
QScriptEngine* engine;
emit getScriptingEngine( engine );
debugger_ = new QScriptEngineDebugger;
if ( OpenFlipperSettings().value("Scripting/QtScriptDebugger",false).toBool() )
debugger_->attachTo(engine);
#endif
#endif
}
......@@ -413,6 +417,7 @@ void ScriptingPlugin::slotExecuteScriptButton() {
void ScriptingPlugin::slotDebuggerButton() {
#ifdef ENABLE_SCRIPT_DEBUGGER
#ifdef QT_SCRIPTTOOLS_LIB
QScriptEngine* engine;
emit getScriptingEngine( engine );
......@@ -423,7 +428,7 @@ void ScriptingPlugin::slotDebuggerButton() {
}
OpenFlipperSettings().setValue("Scripting/QtScriptDebugger",debuggerButton_->isChecked());
#endif
#endif
}
......
......@@ -232,8 +232,10 @@ private :
QAction* debuggerButton_;
#ifdef QT_SCRIPTTOOLS_LIB
#ifdef ENABLE_SCRIPT_DEBUGGER
#ifdef QT_SCRIPTTOOLS_LIB
QScriptEngineDebugger* debugger_;
#endif
#endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment