From 259d1674f293dcb7bbc0fa1c38392d899ce71bc0 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 24 Jul 1999 22:44:22 +0000 Subject: [PATCH] wxHTML compilation fixes git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3123 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/ftp.cpp | 6 ++++-- src/common/socket.cpp | 2 +- src/generic/helpwxht.cpp | 6 +++--- src/html/htmlfilter.cpp | 12 ++++++------ src/html/htmlhelp.cpp | 4 ++-- src/html/htmlhelp_io.cpp | 4 ++-- src/html/search.cpp | 2 +- 7 files changed, 19 insertions(+), 17 deletions(-) diff --git a/src/common/ftp.cpp b/src/common/ftp.cpp index c9e56751ee..8b85a33b67 100644 --- a/src/common/ftp.cpp +++ b/src/common/ftp.cpp @@ -158,7 +158,8 @@ bool wxFTP::SendCommand(const wxString& command, char exp_ret) bool wxFTP::GetResult(char exp) { - if ((m_lastError = GetLine(this, m_lastResult))) + m_lastError = GetLine(this, m_lastResult); + if ( m_lastError ) return FALSE; if (m_lastResult.GetChar(0) != exp) { m_lastError = wxPROTO_PROTERR; @@ -171,7 +172,8 @@ bool wxFTP::GetResult(char exp) key += _T(' '); while (m_lastResult.Index(key) != 0) { - if ((m_lastError = GetLine(this, m_lastResult))) + m_lastError = GetLine(this, m_lastResult); + if ( m_lastError ) return FALSE; } } diff --git a/src/common/socket.cpp b/src/common/socket.cpp index 8100e61368..e4b086669b 100644 --- a/src/common/socket.cpp +++ b/src/common/socket.cpp @@ -601,7 +601,7 @@ GSocketEventFlags wxSocketBase::EventToNotify(GSocketEvent evt) return GSOCK_OUTPUT_FLAG; case GSOCK_CONNECTION: return GSOCK_CONNECTION_FLAG; - case GSOCK_LOST_FLAG: + case GSOCK_LOST: return GSOCK_LOST_FLAG; default: return 0; diff --git a/src/generic/helpwxht.cpp b/src/generic/helpwxht.cpp index 66e90901e2..8f41a07d93 100644 --- a/src/generic/helpwxht.cpp +++ b/src/generic/helpwxht.cpp @@ -294,9 +294,9 @@ wxHelpControllerHtml::SetFrameParameters(const wxString &title, } wxFrame * -wxHelpControllerHtml::GetFrameParameters(wxSize *size = NULL, - wxPoint *pos = NULL, - bool *newframe = NULL) +wxHelpControllerHtml::GetFrameParameters(wxSize *size, + wxPoint *pos, + bool *newframe) { if(size) *size = m_FrameSize; if(pos) *pos = m_FramePosition; diff --git a/src/html/htmlfilter.cpp b/src/html/htmlfilter.cpp index 8673e54357..e56f3203a1 100644 --- a/src/html/htmlfilter.cpp +++ b/src/html/htmlfilter.cpp @@ -57,9 +57,9 @@ wxString wxHtmlFilterPlainText::ReadFile(const wxFSFile& file) wxString doc, doc2; if (s == NULL) return wxEmptyString; - src = new char[s -> StreamSize()+1]; - src[s -> StreamSize()] = 0; - s -> Read(src, s -> StreamSize()); + src = new char[s -> GetSize()+1]; + src[s -> GetSize()] = 0; + s -> Read(src, s -> GetSize()); doc = src; delete [] src; @@ -137,9 +137,9 @@ wxString wxHtmlFilterHTML::ReadFile(const wxFSFile& file) wxString doc; if (s == NULL) return wxEmptyString; - src = (char*) malloc(s -> StreamSize() + 1); - src[s -> StreamSize()] = 0; - s -> Read(src, s -> StreamSize()); + src = (char*) malloc(s -> GetSize() + 1); + src[s -> GetSize()] = 0; + s -> Read(src, s -> GetSize()); doc = src; free(src); diff --git a/src/html/htmlhelp.cpp b/src/html/htmlhelp.cpp index 0f75ef0580..a208ea5caf 100644 --- a/src/html/htmlhelp.cpp +++ b/src/html/htmlhelp.cpp @@ -243,7 +243,7 @@ bool wxHtmlHelpController::AddBook(const wxString& book, bool show_wait_msg) if (fi == NULL) return FALSE; fsys.ChangePathTo(bookFull); s = fi -> GetStream(); - sz = s -> StreamSize(); + sz = s -> GetSize(); buff = (char*) malloc(sz+1); buff[sz] = 0; s -> Read(buff, sz); @@ -724,7 +724,7 @@ void wxHtmlHelpController::ReadCustomization(wxConfigBase *cfg, wxString path) cfg -> SetPath(path); } - m_Cfg.navig_on = (bool) cfg -> Read("hcNavigPanel", m_Cfg.navig_on); + m_Cfg.navig_on = cfg -> Read("hcNavigPanel", m_Cfg.navig_on) != 0; m_Cfg.sashpos = cfg -> Read("hcSashPos", m_Cfg.sashpos); m_Cfg.x = cfg -> Read("hcX", m_Cfg.x); m_Cfg.y = cfg -> Read("hcY", m_Cfg.y); diff --git a/src/html/htmlhelp_io.cpp b/src/html/htmlhelp_io.cpp index b4d82e7ec9..001f085a39 100644 --- a/src/html/htmlhelp_io.cpp +++ b/src/html/htmlhelp_io.cpp @@ -129,7 +129,7 @@ void wxHtmlHelpController::LoadMSProject(HtmlBookRecord *book, wxFileSystem& fsy f = fsys.OpenFile(contentsfile); if (f) { - sz = f -> GetStream() -> StreamSize(); + sz = f -> GetStream() -> GetSize(); buf = (char*) malloc(sz+1); buf[sz] = 0; f -> GetStream() -> Read(buf, sz); @@ -142,7 +142,7 @@ void wxHtmlHelpController::LoadMSProject(HtmlBookRecord *book, wxFileSystem& fsy f = fsys.OpenFile(indexfile); if (f) { - sz = f -> GetStream() -> StreamSize(); + sz = f -> GetStream() -> GetSize(); buf = (char*) malloc(sz+1); buf[sz] = 0; f -> GetStream() -> Read(buf, sz); diff --git a/src/html/search.cpp b/src/html/search.cpp index aab3906fd5..506f382db7 100644 --- a/src/html/search.cpp +++ b/src/html/search.cpp @@ -50,7 +50,7 @@ bool wxSearchEngine::Scan(wxInputStream *stream) wxASSERT_MSG(m_Keyword != NULL, _("wxSearchEngine::LookFor must be called before scanning!")); int i, j; - int lng = stream -> StreamSize(); + int lng = stream ->GetSize(); int wrd = strlen(m_Keyword); bool found = FALSE; char *buf = (char*) malloc(lng + 1); -- 2.45.2