Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: src/plugin/PluginClientBase.h

Issue 5137721374801920: Issue #1173 - Default behavior for catch-all blocks
Patch Set: rebase Created March 3, 2015, 8:06 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/plugin/PluginClass.cpp ('k') | src/plugin/PluginClientBase.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/plugin/PluginClientBase.h
===================================================================
--- a/src/plugin/PluginClientBase.h
+++ b/src/plugin/PluginClientBase.h
@@ -29,13 +29,13 @@
int m_errorId;
int m_errorSubid;
DWORD m_errorCode;
- CString m_errorDescription;
+ std::string m_errorDescription;
DWORD m_processId;
DWORD m_threadId;
public:
- CPluginError(int errorId, int errorSubid, DWORD errorCode, const CString& errorDesc) :
+ CPluginError(int errorId, int errorSubid, DWORD errorCode, const std::string& errorDesc) :
m_errorId(errorId), m_errorSubid(errorSubid), m_errorCode(errorCode), m_errorDescription(errorDesc)
{
m_processId = ::GetCurrentProcessId();
@@ -51,7 +51,7 @@
int GetErrorId() const { return m_errorId; }
int GetErrorSubid() const { return m_errorSubid; }
DWORD GetErrorCode() const { return m_errorCode; }
- CString GetErrorDescription() const { return m_errorDescription; }
+ std::string GetErrorDescription() const { return m_errorDescription; }
DWORD GetProcessId() const { return m_processId; }
DWORD GetThreadId() const { return m_threadId; }
};
@@ -64,8 +64,8 @@
static CComAutoCriticalSection s_criticalSectionQueue;
public:
- static void LogPluginError(DWORD errorCode, int errorId, int errorSubid, const CString& description="", bool isAsync=false, DWORD dwProcessId=0, DWORD dwThreadId=0);
- static void PostPluginError(int errorId, int errorSubid, DWORD errorCode, const CString& errorDescription);
+ static void LogPluginError(DWORD errorCode, int errorId, int errorSubid, const std::string& description="", bool isAsync=false, DWORD dwProcessId=0, DWORD dwThreadId=0);
+ static void PostPluginError(int errorId, int errorSubid, DWORD errorCode, const std::string& errorDescription);
static bool PopFirstPluginError(CPluginError& pluginError);
};
« no previous file with comments | « src/plugin/PluginClass.cpp ('k') | src/plugin/PluginClientBase.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld