From ed626c8b55317c1cc28278ff67c8b78e79303ff6 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 28 Sep 2006 11:31:27 +0000 Subject: [PATCH] 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 --- tests/archive/archivetest.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } } -- 2.50.0