zorba-coders team mailing list archive
-
zorba-coders team
-
Mailing list archive
-
Message #25573
[Merge] lp:~zorba-coders/zorba/bug-1210677-util-jvm into lp:zorba/util-jvm-module
Chris Hillery has proposed merging lp:~zorba-coders/zorba/bug-1210677-util-jvm into lp:zorba/util-jvm-module.
Commit message:
Replace auto_ptr with unique_ptr
Requested reviews:
Chris Hillery (ceejatec)
For more details, see:
https://code.launchpad.net/~zorba-coders/zorba/bug-1210677-util-jvm/+merge/184931
--
https://code.launchpad.net/~zorba-coders/zorba/bug-1210677-util-jvm/+merge/184931
Your team Zorba Coders is subscribed to branch lp:zorba/util-jvm-module.
=== modified file 'src/JavaVMSingleton.cpp'
--- src/JavaVMSingleton.cpp 2013-06-04 05:34:00 +0000
+++ src/JavaVMSingleton.cpp 2013-09-11 04:40:02 +0000
@@ -201,7 +201,7 @@
if (found!=std::string::npos &&
found + suffix.length() == itemFile.length() )
{
- std::auto_ptr<std::istream> pathFile;
+ std::unique_ptr<std::istream> pathFile;
pathFile.reset(new std::ifstream (itemFile.c_str ()));
if (!pathFile->good() || pathFile->eof() )
{
References