From 9f6e45d651cba3cbfe87b2374afc2ea7af2c9cab Mon Sep 17 00:00:00 2001 From: kimmi Date: Tue, 20 Mar 2012 20:54:31 +0000 Subject: [PATCH] =?UTF-8?q?Bugfix=20:=20Removed=20const=5Fcast=20from=20CI?= =?UTF-8?q?OSystemWrapper::Exists.=20(=20merged=20from=20GitHub,=20thanks?= =?UTF-8?q?=20to=20Riku=20Palom=C3=A4ki=20).?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@1220 67173fc5-114c-0410-ac8e-9d2fd5bffc1f --- code/CInterfaceIOWrapper.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/code/CInterfaceIOWrapper.h b/code/CInterfaceIOWrapper.h index 01fcc7422..8508e4f54 100644 --- a/code/CInterfaceIOWrapper.h +++ b/code/CInterfaceIOWrapper.h @@ -114,10 +114,9 @@ public: // ................................................................... bool Exists( const char* pFile) const { - CIOSystemWrapper* pip = const_cast(this); - IOStream* p = pip->Open(pFile); + aiFile* p = mFileSystem->OpenProc(mFileSystem,pFile,"rb"); if (p){ - pip->Close(p); + mFileSystem->CloseProc(mFileSystem,p); return true; } return false;