Fix some warnings (looking like potential bugs) detected by cppcheck, (a few from a patch from Julien Nabet <[email protected]>), remove not used vars and a few coding style fixes.

This commit is contained in:
jean-pierre charras
2015-12-27 13:16:46 +01:00
parent 415c72262a
commit c4ea4dc0df
8 changed files with 14 additions and 27 deletions
-4
View File
@@ -2720,8 +2720,6 @@ bool IDF3_BOARD::ReadFile( const wxString& aFullFileName, bool aNoSubstituteOutl
// 2. Check if a file with extension 'emp' exists and read it
// 3. Open the specified filename and read it
std::string fname = TO_UTF8( aFullFileName );
wxFileName brdname( aFullFileName );
wxFileName libname( aFullFileName );
@@ -3125,8 +3123,6 @@ bool IDF3_BOARD::WriteFile( const wxString& aFullFileName, bool aUnitMM, bool aF
// 2. Write the *.emn file according to the IDFv3 spec
// 3. Write the *.emp file according to the IDFv3 spec
std::string fname = TO_UTF8( aFullFileName );
wxFileName brdname( aFullFileName );
wxFileName libname( aFullFileName );