From f02f4d43c5134fce1fdad8967d8337b8a92b7283 Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Tue, 19 Dec 2006 13:49:26 +0000 Subject: [PATCH] fvisibility-inlines-hidden fix git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44013 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/wfstream.h | 8 ++++---- src/common/wfstream.cpp | 20 ++++++++++++++++++++ 2 files changed, 24 insertions(+), 4 deletions(-) diff --git a/include/wx/wfstream.h b/include/wx/wfstream.h index 63c90a0961..b8b954ecca 100644 --- a/include/wx/wfstream.h +++ b/include/wx/wfstream.h @@ -39,7 +39,7 @@ public: wxFileOffset GetLength() const; 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; } protected: @@ -69,7 +69,7 @@ public: wxFileOffset GetLength() const; 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; } protected: @@ -140,7 +140,7 @@ public: wxFileOffset GetLength() const; 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; } protected: @@ -170,7 +170,7 @@ public: wxFileOffset GetLength() const; 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; } protected: diff --git a/src/common/wfstream.cpp b/src/common/wfstream.cpp index 572d2be6d5..25327f1489 100644 --- a/src/common/wfstream.cpp +++ b/src/common/wfstream.cpp @@ -107,6 +107,11 @@ wxFileOffset wxFileInputStream::OnSysTell() const return m_file->Tell(); } +bool wxFileInputStream::IsOk() const +{ + return (wxStreamBase::IsOk() && m_file->IsOpened()); +} + // ---------------------------------------------------------------------------- // wxFileOutputStream // ---------------------------------------------------------------------------- @@ -178,6 +183,11 @@ wxFileOffset wxFileOutputStream::GetLength() const return m_file->Length(); } +bool wxFileOutputStream::IsOk() const +{ + return (wxStreamBase::IsOk() && m_file->IsOpened()); +} + // ---------------------------------------------------------------------------- // wxTempFileOutputStream // ---------------------------------------------------------------------------- @@ -290,6 +300,11 @@ wxFileOffset wxFFileInputStream::OnSysTell() const return m_file->Tell(); } +bool wxFFileInputStream::IsOk() const +{ + return (wxStreamBase::IsOk() && m_file->IsOpened()); +} + // ---------------------------------------------------------------------------- // wxFFileOutputStream // ---------------------------------------------------------------------------- @@ -371,6 +386,11 @@ wxFileOffset wxFFileOutputStream::GetLength() const return m_file->Length(); } +bool wxFFileOutputStream::IsOk() const +{ + return (wxStreamBase::IsOk() && m_file->IsOpened()); +} + // ---------------------------------------------------------------------------- // wxFFileStream // ----------------------------------------------------------------------------