]> git.saurik.com Git - wxWidgets.git/commitdiff
VC7.1 warning fix about passing temporary as (non-const for this compiler) parameter...
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 28 Sep 2006 11:31:27 +0000 (11:31 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 28 Sep 2006 11:31:27 +0000 (11:31 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41485 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

tests/archive/archivetest.cpp

index dc75506136916635f41091192d40c87d2a11fb06..941b07d0023cdea7aebd8c3def4f0592a62f328e 100644 (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;
     }
 }