Cleamup some compiler warnings
This commit is contained in:
parent
92fd3d7119
commit
c8917a0951
|
@ -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
|
||||
{
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue