git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5632
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
HP_TagHandler *handler = new HP_TagHandler(book);
parser.AddTagHandler(handler);
HP_TagHandler *handler = new HP_TagHandler(book);
parser.AddTagHandler(handler);
- f = ( contentsfile.IsEmpty() ? 0 : fsys.OpenFile(contentsfile) );
+ f = ( contentsfile.IsEmpty() ? NULL : fsys.OpenFile(contentsfile) );
if (f) {
sz = f -> GetStream() -> GetSize();
buf = new char[sz + 1];
if (f) {
sz = f -> GetStream() -> GetSize();
buf = new char[sz + 1];
else
wxLogError(_("Cannot open contents file: %s"), contentsfile.mb_str());
else
wxLogError(_("Cannot open contents file: %s"), contentsfile.mb_str());
- f = ( indexfile.IsEmpty() ? 0 : fsys.OpenFile(indexfile) );
+ f = ( indexfile.IsEmpty() ? NULL : fsys.OpenFile(indexfile) );
if (f) {
sz = f -> GetStream() -> GetSize();
buf = new char[sz + 1];
if (f) {
sz = f -> GetStream() -> GetSize();
buf = new char[sz + 1];
handler -> WriteOut(m_Index, m_IndexCnt);
delete[] buf;
}
handler -> WriteOut(m_Index, m_IndexCnt);
delete[] buf;
}
+ else if (!indexfile.IsEmpty())
wxLogError(_("Cannot open index file: %s"), indexfile.mb_str());
return TRUE;
}
wxLogError(_("Cannot open index file: %s"), indexfile.mb_str());
return TRUE;
}