Changed IF_IStream::close to return an RCODE so that it is compatible with IF_OStream::close. This allows the derivation of input/output stream objects with a single close method.
git-svn-id: https://svn.code.sf.net/p/flaim/code/trunk@351 0109f412-320b-0410-ab79-c3e0c5ffbbe6
This commit is contained in:
@@ -89,8 +89,9 @@ public:
|
||||
FLMUINT uiBytesToRead,
|
||||
FLMUINT * puiBytesRead);
|
||||
|
||||
FINLINE void XFLMAPI close( void)
|
||||
FINLINE RCODE XFLMAPI close( void)
|
||||
{
|
||||
return( NE_XFLM_OK);
|
||||
}
|
||||
|
||||
private:
|
||||
@@ -2836,13 +2837,15 @@ public:
|
||||
FLMUINT uiBytesToRead,
|
||||
FLMUINT * puiBytesRead);
|
||||
|
||||
FINLINE void XFLMAPI close( void)
|
||||
FINLINE RCODE XFLMAPI close( void)
|
||||
{
|
||||
if( m_pIStream)
|
||||
{
|
||||
m_pIStream->Release();
|
||||
m_pIStream = NULL;
|
||||
}
|
||||
|
||||
return( NE_XFLM_OK);
|
||||
}
|
||||
|
||||
RCODE open(
|
||||
@@ -2987,13 +2990,15 @@ public:
|
||||
FLMUINT uiBytesToRead,
|
||||
FLMUINT * puiBytesRead);
|
||||
|
||||
FINLINE void XFLMAPI close( void)
|
||||
FINLINE RCODE XFLMAPI close( void)
|
||||
{
|
||||
if( m_pEncoderStream)
|
||||
{
|
||||
m_pEncoderStream->Release();
|
||||
m_pEncoderStream = NULL;
|
||||
}
|
||||
|
||||
return( NE_XFLM_OK);
|
||||
}
|
||||
|
||||
RCODE open(
|
||||
|
||||
Reference in New Issue
Block a user