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

Unified Diff: src/plugin/PluginClientBase.h

Issue 5747779603267584: Issue #1234 - Rework strings in debug facility (Closed)
Patch Set: Fixed spaces Created Feb. 25, 2015, 3:24 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
Index: src/plugin/PluginClientBase.h
===================================================================
--- a/src/plugin/PluginClientBase.h
+++ b/src/plugin/PluginClientBase.h
@@ -28,13 +28,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();
@@ -50,7 +50,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; }
};
@@ -79,9 +79,9 @@
static void SetLocalization();
- static void LogPluginError(DWORD errorCode, int errorId, int errorSubid, const CString& description="", bool isAsync=false, DWORD dwProcessId=0, DWORD dwThreadId=0);
+ 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 CString& errorDescription);
+ static void PostPluginError(int errorId, int errorSubid, DWORD errorCode, const std::string& errorDescription);
static bool PopFirstPluginError(CPluginError& pluginError);
};

Powered by Google App Engine
This is Rietveld