X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d34ad9ea8910361e3d8443ddda0ee5554dc6480d..1789c1c6022a63d0d7bfdf5242528f526b870bc6:/src/xrc/xh_collpane.cpp diff --git a/src/xrc/xh_collpane.cpp b/src/xrc/xh_collpane.cpp index 7134ccd2ab..93ab13c397 100644 --- a/src/xrc/xh_collpane.cpp +++ b/src/xrc/xh_collpane.cpp @@ -26,7 +26,8 @@ IMPLEMENT_DYNAMIC_CLASS(wxCollapsiblePaneXmlHandler, wxXmlResourceHandler) -wxCollapsiblePaneXmlHandler::wxCollapsiblePaneXmlHandler() : wxXmlResourceHandler() +wxCollapsiblePaneXmlHandler::wxCollapsiblePaneXmlHandler() +: wxXmlResourceHandler(), m_isInside(false) { XRC_ADD_STYLE(wxCP_NO_TLW_RESIZE); XRC_ADD_STYLE(wxCP_DEFAULT_STYLE); @@ -53,7 +54,7 @@ wxObject *wxCollapsiblePaneXmlHandler::DoCreateResource() } else { - wxLogError(wxT("Error in resource: no control within collapsible pane's tag.")); + ReportError("no control within panewindow"); return NULL; } } @@ -64,7 +65,7 @@ wxObject *wxCollapsiblePaneXmlHandler::DoCreateResource() wxString label = GetParamValue(wxT("label")); if (label.empty()) { - wxLogError(wxT("Error in resource: empty label for wxCollapsiblePane")); + ReportParamError("label", "label cannot be empty"); return NULL; }