X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9034c5906c1c5248dda83f186177f07279bfbab4..27e7e85984a212f98548d3b2c05ac1195e1b9216:/src/common/debugrpt.cpp diff --git a/src/common/debugrpt.cpp b/src/common/debugrpt.cpp index 2f5ba823e3..2f7a5e602b 100644 --- a/src/common/debugrpt.cpp +++ b/src/common/debugrpt.cpp @@ -53,12 +53,14 @@ #include "wx/zipstrm.h" #endif // wxUSE_ZIPSTREAM -#if wxUSE_STACKWALKER +WX_CHECK_BUILD_OPTIONS("wxQA") // ---------------------------------------------------------------------------- // XmlStackWalker: stack walker specialization which dumps stack in XML // ---------------------------------------------------------------------------- +#if wxUSE_STACKWALKER + class XmlStackWalker : public wxStackWalker { public: @@ -400,8 +402,8 @@ bool wxDebugReport::AddContext(wxDebugReport::Context ctx) wxXmlNode *nodeRoot = new wxXmlNode(wxXML_ELEMENT_NODE, _T("report")); xmldoc.SetRoot(nodeRoot); nodeRoot->AddProperty(_T("version"), _T("1.0")); - nodeRoot->AddProperty(_T("kind"), ctx == Context_Curent ? _T("user") - : _T("exception")); + nodeRoot->AddProperty(_T("kind"), ctx == Context_Current ? _T("user") + : _T("exception")); // add system information wxXmlNode *nodeSystemInfo = new wxXmlNode(wxXML_ELEMENT_NODE, _T("system")); @@ -436,7 +438,7 @@ bool wxDebugReport::AddContext(wxDebugReport::Context ctx) { sw.WalkFromException(); } - else // Context_Curent + else // Context_Current { sw.Walk(); }