From: Vadim Zeitlin Date: Thu, 28 Sep 2006 11:31:27 +0000 (+0000) Subject: VC7.1 warning fix about passing temporary as (non-const for this compiler) parameter... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/ed626c8b55317c1cc28278ff67c8b78e79303ff6 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 --- diff --git a/tests/archive/archivetest.cpp b/tests/archive/archivetest.cpp index dc75506136..941b07d002 100644 --- a/tests/archive/archivetest.cpp +++ b/tests/archive/archivetest.cpp @@ -1248,7 +1248,8 @@ void CorruptionTestCase::ExtractArchive(wxInputStream& in) while (arc->IsOk()) arc->Read(buf, sizeof(buf)); - entry = auto_ptr(arc->GetNextEntry()); + auto_ptr next(arc->GetNextEntry()); + entry = next; } }