Cleamup some compiler warnings

This commit is contained in:
Ian McInerney 2020-08-19 11:34:30 +01:00
parent 92fd3d7119
commit c8917a0951
3 changed files with 2 additions and 5 deletions

View File

@ -31,9 +31,6 @@
#include <sch_edit_frame.h>
#include <widgets/color_swatch.h>
const int BUTT_COLOR_MINSIZE_X = 32;
const int BUTT_COLOR_MINSIZE_Y = 20;
struct lineTypeStruct
{

View File

@ -483,7 +483,7 @@ bool readSTEPZ( Handle(TDocStd_Document)& m_doc, const char* aFileName )
ifile.Read( buffer, size);
std::string expanded = gzip::decompress( buffer, size );
delete buffer;
delete[] buffer;
ofile.Write( expanded.data(), expanded.size() );
ofile.Close();

View File

@ -187,7 +187,7 @@ SCENEGRAPH* LoadVRML( const wxString& aFileName, bool useInline )
ifile.Read( buffer, size);
std::string expanded = gzip::decompress( buffer, size );
delete buffer;
delete[] buffer;
ofile.Write( expanded.data(), expanded.size() );
ofile.Close();