Replace wxFile usage with wxFFile

Buffered libc wxFFile is better thinking about syscall wxFile going wrong.
This commit is contained in:
Marek Roszko
2020-12-12 13:16:23 -05:00
parent dab254580a
commit d67cf2f9af
10 changed files with 30 additions and 22 deletions
+2 -1
View File
@@ -45,6 +45,7 @@
#include <tool/tool_manager.h>
#include <tools/ee_actions.h>
#include <eeschema_settings.h>
#include <wx/ffile.h>
SIM_PLOT_TYPE operator|( SIM_PLOT_TYPE aFirst, SIM_PLOT_TYPE aSecond )
{
@@ -1099,7 +1100,7 @@ void SIM_PLOT_FRAME::menuSaveCsv( wxCommandEvent& event )
if( saveDlg.ShowModal() == wxID_CANCEL )
return;
wxFile out( saveDlg.GetPath(), wxFile::write );
wxFFile out( saveDlg.GetPath(), "wb" );
bool timeWritten = false;
for( const auto& t : CurrentPlot()->GetTraces() )