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

Unified Diff: src/plugin/PluginUserSettings.cpp

Issue 29333350: Issue #3562 - Use 'ToWstring()' to convert BSTR values (Closed)
Patch Set: fix up error log message Created Jan. 11, 2016, 3:57 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/PluginDomTraverserBase.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/plugin/PluginUserSettings.cpp
===================================================================
--- a/src/plugin/PluginUserSettings.cpp
+++ b/src/plugin/PluginUserSettings.cpp
@@ -184,8 +184,8 @@
CComBSTR section = pDispparams->rgvarg[1].bstrVal;
Dictionary* dictionary = Dictionary::GetInstance();
std::wstring message = dictionary->Lookup(
- ToUtf8String(std::wstring(section, ::SysStringLen(section))),
- ToUtf8String(std::wstring(key, ::SysStringLen(key)))
+ ToUtf8String(ToWstring(section)),
+ ToUtf8String(ToWstring(key))
);
pVarResult->vt = VT_BSTR;
« no previous file with comments | « src/plugin/PluginDomTraverserBase.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld