Reduce the scope of some local variables
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user