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;
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;
}
}
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;
}
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;
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;
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);
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);
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);
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);
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);
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);