Reduce the scope of some local variables

This commit is contained in:
Paul Cornett
2019-04-05 10:44:02 -07:00
parent af1cf0a5f3
commit fe1737d399
63 changed files with 163 additions and 152 deletions

View File

@@ -2235,11 +2235,10 @@ bool wxTransferFileToStream(const wxString& filename, wxSTD ostream& stream)
if ( !file.IsOpened() )
return false;
char buf[4096];
size_t nRead;
do
{
char buf[4096];
size_t nRead;
nRead = file.Read(buf, WXSIZEOF(buf));
if ( file.Error() )
return false;