replaced boost smart pointers with c++11 smart pointers
This commit is contained in:
@@ -50,7 +50,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
#include "StreamReader.h"
|
||||
#include "MemoryIOWrapper.h"
|
||||
#include <boost/scoped_ptr.hpp>
|
||||
#include <memory>
|
||||
#include "../include/assimp/mesh.h"
|
||||
#include "../include/assimp/scene.h"
|
||||
#include <cctype>
|
||||
@@ -153,7 +153,7 @@ void XGLImporter::InternReadFile( const std::string& pFile,
|
||||
#endif
|
||||
|
||||
scene = pScene;
|
||||
boost::shared_ptr<IOStream> stream( pIOHandler->Open( pFile, "rb"));
|
||||
std::shared_ptr<IOStream> stream( pIOHandler->Open( pFile, "rb"));
|
||||
|
||||
// check whether we can read from the file
|
||||
if( stream.get() == NULL) {
|
||||
@@ -165,7 +165,7 @@ void XGLImporter::InternReadFile( const std::string& pFile,
|
||||
#ifdef ASSIMP_BUILD_NO_COMPRESSED_XGL
|
||||
ThrowException("Cannot read ZGL file since Assimp was built without compression support");
|
||||
#else
|
||||
boost::scoped_ptr<StreamReaderLE> raw_reader(new StreamReaderLE(stream));
|
||||
std::unique_ptr<StreamReaderLE> raw_reader(new StreamReaderLE(stream));
|
||||
|
||||
// build a zlib stream
|
||||
z_stream zstream;
|
||||
@@ -214,7 +214,7 @@ void XGLImporter::InternReadFile( const std::string& pFile,
|
||||
|
||||
// construct the irrXML parser
|
||||
CIrrXML_IOStreamReader st(stream.get());
|
||||
boost::scoped_ptr<IrrXMLReader> read( createIrrXMLReader((IFileReadCallBack*) &st) );
|
||||
std::unique_ptr<IrrXMLReader> read( createIrrXMLReader((IFileReadCallBack*) &st) );
|
||||
reader = read.get();
|
||||
|
||||
// parse the XML file
|
||||
|
||||
Reference in New Issue
Block a user