fvisibility-inlines-hidden fix

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44013 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2006-12-19 13:49:26 +00:00
parent afc2d3bc8a
commit f02f4d43c5
2 changed files with 24 additions and 4 deletions

View File

@@ -39,7 +39,7 @@ public:
wxFileOffset GetLength() const; wxFileOffset GetLength() const;
bool Ok() const { return IsOk(); } bool Ok() const { return IsOk(); }
virtual bool IsOk() const { return (wxStreamBase::IsOk() && m_file->IsOpened()); } virtual bool IsOk() const;
bool IsSeekable() const { return m_file->GetKind() == wxFILE_KIND_DISK; } bool IsSeekable() const { return m_file->GetKind() == wxFILE_KIND_DISK; }
protected: protected:
@@ -69,7 +69,7 @@ public:
wxFileOffset GetLength() const; wxFileOffset GetLength() const;
bool Ok() const { return IsOk(); } bool Ok() const { return IsOk(); }
virtual bool IsOk() const { return (wxStreamBase::IsOk() && m_file->IsOpened()); } virtual bool IsOk() const;
bool IsSeekable() const { return m_file->GetKind() == wxFILE_KIND_DISK; } bool IsSeekable() const { return m_file->GetKind() == wxFILE_KIND_DISK; }
protected: protected:
@@ -140,7 +140,7 @@ public:
wxFileOffset GetLength() const; wxFileOffset GetLength() const;
bool Ok() const { return IsOk(); } bool Ok() const { return IsOk(); }
virtual bool IsOk() const { return (wxStreamBase::IsOk() && m_file->IsOpened()); } virtual bool IsOk() const;
bool IsSeekable() const { return m_file->GetKind() == wxFILE_KIND_DISK; } bool IsSeekable() const { return m_file->GetKind() == wxFILE_KIND_DISK; }
protected: protected:
@@ -170,7 +170,7 @@ public:
wxFileOffset GetLength() const; wxFileOffset GetLength() const;
bool Ok() const { return IsOk(); } bool Ok() const { return IsOk(); }
virtual bool IsOk() const { return (wxStreamBase::IsOk() && m_file->IsOpened()); } virtual bool IsOk() const ;
bool IsSeekable() const { return m_file->GetKind() == wxFILE_KIND_DISK; } bool IsSeekable() const { return m_file->GetKind() == wxFILE_KIND_DISK; }
protected: protected:

View File

@@ -107,6 +107,11 @@ wxFileOffset wxFileInputStream::OnSysTell() const
return m_file->Tell(); return m_file->Tell();
} }
bool wxFileInputStream::IsOk() const
{
return (wxStreamBase::IsOk() && m_file->IsOpened());
}
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
// wxFileOutputStream // wxFileOutputStream
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
@@ -178,6 +183,11 @@ wxFileOffset wxFileOutputStream::GetLength() const
return m_file->Length(); return m_file->Length();
} }
bool wxFileOutputStream::IsOk() const
{
return (wxStreamBase::IsOk() && m_file->IsOpened());
}
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
// wxTempFileOutputStream // wxTempFileOutputStream
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
@@ -290,6 +300,11 @@ wxFileOffset wxFFileInputStream::OnSysTell() const
return m_file->Tell(); return m_file->Tell();
} }
bool wxFFileInputStream::IsOk() const
{
return (wxStreamBase::IsOk() && m_file->IsOpened());
}
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
// wxFFileOutputStream // wxFFileOutputStream
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
@@ -371,6 +386,11 @@ wxFileOffset wxFFileOutputStream::GetLength() const
return m_file->Length(); return m_file->Length();
} }
bool wxFFileOutputStream::IsOk() const
{
return (wxStreamBase::IsOk() && m_file->IsOpened());
}
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
// wxFFileStream // wxFFileStream
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------