removed asserts to suppress gcc 3.4 warnings about condition being always true
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27925 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -235,21 +235,12 @@ public:
|
|||||||
bool IsOk() const { return m_handles[Read] != INVALID_HANDLE_VALUE; }
|
bool IsOk() const { return m_handles[Read] != INVALID_HANDLE_VALUE; }
|
||||||
|
|
||||||
// return the descriptor for one of the pipe ends
|
// return the descriptor for one of the pipe ends
|
||||||
HANDLE operator[](Direction which) const
|
HANDLE operator[](Direction which) const { return m_handles[which]; }
|
||||||
{
|
|
||||||
wxASSERT_MSG( which >= 0 && (size_t)which < WXSIZEOF(m_handles),
|
|
||||||
_T("invalid pipe index") );
|
|
||||||
|
|
||||||
return m_handles[which];
|
|
||||||
}
|
|
||||||
|
|
||||||
// detach a descriptor, meaning that the pipe dtor won't close it, and
|
// detach a descriptor, meaning that the pipe dtor won't close it, and
|
||||||
// return it
|
// return it
|
||||||
HANDLE Detach(Direction which)
|
HANDLE Detach(Direction which)
|
||||||
{
|
{
|
||||||
wxASSERT_MSG( which >= 0 && (size_t)which < WXSIZEOF(m_handles),
|
|
||||||
_T("invalid pipe index") );
|
|
||||||
|
|
||||||
HANDLE handle = m_handles[which];
|
HANDLE handle = m_handles[which];
|
||||||
m_handles[which] = INVALID_HANDLE_VALUE;
|
m_handles[which] = INVALID_HANDLE_VALUE;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user