Fixed typo in bitbuf error handler name

This commit is contained in:
Jordan Cristiano 2015-06-27 21:31:11 -04:00
parent 1d3656b24b
commit cfba42038d
2 changed files with 7 additions and 7 deletions

View File

@ -181,7 +181,7 @@ void bf_write::SetDebugName( const char *pDebugName )
m_pDebugName = pDebugName; m_pDebugName = pDebugName;
} }
void bf_write::SetErrorHandler(IBitBufOverErrorHandler* handler) void bf_write::SetErrorHandler(IBitBufErrorHandler* handler)
{ {
m_errorHandler = handler; m_errorHandler = handler;
} }
@ -849,7 +849,7 @@ void bf_read::SetDebugName( const char *pName )
m_pDebugName = pName; m_pDebugName = pName;
} }
void bf_read::SetErrorHandler(IBitBufOverErrorHandler* handler) void bf_read::SetErrorHandler(IBitBufErrorHandler* handler)
{ {
m_errorHandler = handler; m_errorHandler = handler;
} }

View File

@ -36,7 +36,7 @@ typedef enum
BITBUFERROR_NUM_ERRORS BITBUFERROR_NUM_ERRORS
} BitBufErrorType; } BitBufErrorType;
class IBitBufOverErrorHandler class IBitBufErrorHandler
{ {
public: public:
virtual bool HandleError(BitBufErrorType errorType, const char *pDebugName) = 0; virtual bool HandleError(BitBufErrorType errorType, const char *pDebugName) = 0;
@ -140,7 +140,7 @@ public:
const char* GetDebugName(); const char* GetDebugName();
void SetDebugName( const char *pDebugName ); void SetDebugName( const char *pDebugName );
void SetErrorHandler(IBitBufOverErrorHandler* handler); void SetErrorHandler(IBitBufErrorHandler* handler);
bool CallErrorHandler(BitBufErrorType errorType); bool CallErrorHandler(BitBufErrorType errorType);
// Seek to a specific position. // Seek to a specific position.
@ -245,7 +245,7 @@ private:
bool m_bAssertOnOverflow; bool m_bAssertOnOverflow;
const char *m_pDebugName; const char *m_pDebugName;
IBitBufOverErrorHandler* m_errorHandler; IBitBufErrorHandler* m_errorHandler;
}; };
@ -508,7 +508,7 @@ public:
const char* GetDebugName() const { return m_pDebugName; } const char* GetDebugName() const { return m_pDebugName; }
void SetDebugName( const char *pName ); void SetDebugName( const char *pName );
void SetErrorHandler(IBitBufOverErrorHandler* handler); void SetErrorHandler(IBitBufErrorHandler* handler);
bool CallErrorHandler(BitBufErrorType errorType); bool CallErrorHandler(BitBufErrorType errorType);
void ExciseBits( int startbit, int bitstoremove ); void ExciseBits( int startbit, int bitstoremove );
@ -658,7 +658,7 @@ private:
bool m_bAssertOnOverflow; bool m_bAssertOnOverflow;
const char *m_pDebugName; const char *m_pDebugName;
IBitBufOverErrorHandler* m_errorHandler; IBitBufErrorHandler* m_errorHandler;
}; };
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------