Skip to content
Snippets Groups Projects
Commit 847bac00 authored by Roger Leigh's avatar Roger Leigh
Browse files

xercesc: BinMemInputStream: Add missing const_cast

git-svn-id: https://svn.apache.org/repos/asf/xerces/c/trunk@1798767 13f79535-47bb-0310-9956-ffa450edef68
parent 78f1bdee
No related branches found
No related tags found
No related merge requests found
......@@ -65,7 +65,7 @@ BinMemInputStream::~BinMemInputStream()
// cast off the const'ness in that case in order to delete it.
//
if ((fBufOpt == BufOpt_Adopt) || (fBufOpt == BufOpt_Copy))
fMemoryManager->deallocate((XMLByte*)fBuffer);//delete [] (XMLByte*)fBuffer;
fMemoryManager->deallocate(const_cast<XMLByte*>(fBuffer));//delete [] (XMLByte*)fBuffer;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment