fixed Context_Current spelling
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32961 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -26,7 +26,7 @@ class WXDLLIMPEXP_QA wxDebugReport
|
|||||||
public:
|
public:
|
||||||
// this is used for the functions which may report either the current state
|
// this is used for the functions which may report either the current state
|
||||||
// or the state during the last (fatal) exception
|
// or the state during the last (fatal) exception
|
||||||
enum Context { Context_Curent, Context_Exception };
|
enum Context { Context_Current, Context_Exception };
|
||||||
|
|
||||||
|
|
||||||
// ctor creates a temporary directory where we create the files which will
|
// ctor creates a temporary directory where we create the files which will
|
||||||
@@ -56,13 +56,13 @@ public:
|
|||||||
|
|
||||||
// add an XML file containing the current or exception context and the
|
// add an XML file containing the current or exception context and the
|
||||||
// stack trace
|
// stack trace
|
||||||
bool AddCurrentContext() { return AddContext(Context_Curent); }
|
bool AddCurrentContext() { return AddContext(Context_Current); }
|
||||||
bool AddExceptionContext() { return AddContext(Context_Exception); }
|
bool AddExceptionContext() { return AddContext(Context_Exception); }
|
||||||
virtual bool AddContext(Context ctx);
|
virtual bool AddContext(Context ctx);
|
||||||
|
|
||||||
#if wxUSE_CRASHREPORT
|
#if wxUSE_CRASHREPORT
|
||||||
// add a file with crash report
|
// add a file with crash report
|
||||||
bool AddCurrentDump() { return AddDump(Context_Curent); }
|
bool AddCurrentDump() { return AddDump(Context_Current); }
|
||||||
bool AddExceptionDump() { return AddDump(Context_Exception); }
|
bool AddExceptionDump() { return AddDump(Context_Exception); }
|
||||||
virtual bool AddDump(Context ctx);
|
virtual bool AddDump(Context ctx);
|
||||||
#endif // wxUSE_CRASHREPORT
|
#endif // wxUSE_CRASHREPORT
|
||||||
|
@@ -38,6 +38,7 @@ class MyDebugReport : public wxDebugReportUpload
|
|||||||
public:
|
public:
|
||||||
MyDebugReport() : wxDebugReportUpload
|
MyDebugReport() : wxDebugReportUpload
|
||||||
(
|
(
|
||||||
|
//_T("http://iml2.hitchcock.org/intranet/crashes/wxtest"),
|
||||||
_T("http://your.url.here/"),
|
_T("http://your.url.here/"),
|
||||||
_T("report:file"),
|
_T("report:file"),
|
||||||
_T("action")
|
_T("action")
|
||||||
@@ -135,7 +136,7 @@ public:
|
|||||||
case wxNO:
|
case wxNO:
|
||||||
// example of manually generated report, this could be also
|
// example of manually generated report, this could be also
|
||||||
// used in wxApp::OnAssert()
|
// used in wxApp::OnAssert()
|
||||||
GenerateReport(wxDebugReport::Context_Curent);
|
GenerateReport(wxDebugReport::Context_Current);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case wxCANCEL:
|
case wxCANCEL:
|
||||||
|
@@ -402,8 +402,8 @@ bool wxDebugReport::AddContext(wxDebugReport::Context ctx)
|
|||||||
wxXmlNode *nodeRoot = new wxXmlNode(wxXML_ELEMENT_NODE, _T("report"));
|
wxXmlNode *nodeRoot = new wxXmlNode(wxXML_ELEMENT_NODE, _T("report"));
|
||||||
xmldoc.SetRoot(nodeRoot);
|
xmldoc.SetRoot(nodeRoot);
|
||||||
nodeRoot->AddProperty(_T("version"), _T("1.0"));
|
nodeRoot->AddProperty(_T("version"), _T("1.0"));
|
||||||
nodeRoot->AddProperty(_T("kind"), ctx == Context_Curent ? _T("user")
|
nodeRoot->AddProperty(_T("kind"), ctx == Context_Current ? _T("user")
|
||||||
: _T("exception"));
|
: _T("exception"));
|
||||||
|
|
||||||
// add system information
|
// add system information
|
||||||
wxXmlNode *nodeSystemInfo = new wxXmlNode(wxXML_ELEMENT_NODE, _T("system"));
|
wxXmlNode *nodeSystemInfo = new wxXmlNode(wxXML_ELEMENT_NODE, _T("system"));
|
||||||
@@ -438,7 +438,7 @@ bool wxDebugReport::AddContext(wxDebugReport::Context ctx)
|
|||||||
{
|
{
|
||||||
sw.WalkFromException();
|
sw.WalkFromException();
|
||||||
}
|
}
|
||||||
else // Context_Curent
|
else // Context_Current
|
||||||
{
|
{
|
||||||
sw.Walk();
|
sw.Walk();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user