From c585964da98269db2cabf06daafb0b11cae3a4ec Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Wed, 11 Jul 2018 09:46:37 +0200 Subject: [PATCH] fix coding style issues. --- pcbnew/swig/pcbnew_action_plugins.cpp | 2 +- pcbnew/swig/pcbnew_scripting_helpers.cpp | 2 +- pcbnew/swig/python_scripting.cpp | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/pcbnew/swig/pcbnew_action_plugins.cpp b/pcbnew/swig/pcbnew_action_plugins.cpp index ec234e2b8f..4fb232ea8f 100644 --- a/pcbnew/swig/pcbnew_action_plugins.cpp +++ b/pcbnew/swig/pcbnew_action_plugins.cpp @@ -85,7 +85,7 @@ PyObject* PYTHON_ACTION_PLUGIN::CallMethod( const char* aMethod, PyObject* aArgl } else { - wxString msg = wxString::Format(_( "Method \"%s\" not found, or not callable" ), aMethod ); + wxString msg = wxString::Format( _( "Method \"%s\" not found, or not callable" ), aMethod ); wxMessageBox( msg, _( "Unknown Method" ), wxICON_ERROR | wxOK ); } diff --git a/pcbnew/swig/pcbnew_scripting_helpers.cpp b/pcbnew/swig/pcbnew_scripting_helpers.cpp index 066659ed0a..1b4a2fc6b5 100644 --- a/pcbnew/swig/pcbnew_scripting_helpers.cpp +++ b/pcbnew/swig/pcbnew_scripting_helpers.cpp @@ -126,7 +126,7 @@ void Refresh() void WindowZoom( int xl, int yl, int width, int height ) { - EDA_RECT Rect( wxPoint( xl, yl ), wxSize( width, height )) ; + EDA_RECT Rect( wxPoint( xl, yl ), wxSize( width, height ) ); if( s_PcbEditFrame ) s_PcbEditFrame->Window_Zoom( Rect ); diff --git a/pcbnew/swig/python_scripting.cpp b/pcbnew/swig/python_scripting.cpp index 725a2e2336..2f0b6a3f28 100644 --- a/pcbnew/swig/python_scripting.cpp +++ b/pcbnew/swig/python_scripting.cpp @@ -89,7 +89,7 @@ static void swigAddBuiltin() /* allocate memory for the python module table */ SwigImportInittab = (struct _inittab*) malloc( - sizeof(struct _inittab) * (i + EXTRA_PYTHON_MODULES) ); + sizeof( struct _inittab ) * ( i + EXTRA_PYTHON_MODULES ) ); /* copy all pre-existing python modules into our newly created table */ i = 0; @@ -145,7 +145,7 @@ bool pcbnewInitPythonScripting( const char * aUserScriptingPath ) swigSwitchPythonBuiltin(); // switch the python builtin modules to our new list Py_Initialize(); - PySys_SetArgv(Pgm().App().argc, Pgm().App().argv); + PySys_SetArgv( Pgm().App().argc, Pgm().App().argv ); #ifdef KICAD_SCRIPTING_WXPYTHON PyEval_InitThreads(); @@ -155,7 +155,7 @@ bool pcbnewInitPythonScripting( const char * aUserScriptingPath ) // Make sure that that the correct version of wxPython is loaded. In systems where there // are different versions of wxPython installed this can lead to select wrong wxPython // version being selected. - snprintf( cmd, sizeof(cmd), "import wxversion; wxversion.select('%s')", WXPYTHON_VERSION ); + snprintf( cmd, sizeof( cmd ), "import wxversion; wxversion.select( '%s' )", WXPYTHON_VERSION ); int retv = PyRun_SimpleString( cmd );