VC7.1 warning fix about passing temporary as (non-const for this compiler) parameter of auto_ptr::operator=()

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41485 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2006-09-28 11:31:27 +00:00
parent a0f3a0211a
commit ed626c8b55

View File

@ -1248,7 +1248,8 @@ void CorruptionTestCase::ExtractArchive(wxInputStream& in)
while (arc->IsOk())
arc->Read(buf, sizeof(buf));
entry = auto_ptr<wxArchiveEntry>(arc->GetNextEntry());
auto_ptr<wxArchiveEntry> next(arc->GetNextEntry());
entry = next;
}
}