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

Unified Diff: src/shared/Utils.h

Issue 29332484: Noissue - Add conversion function from 'BSTR' to 'std::wstring' (Closed)
Patch Set: Created Dec. 9, 2015, 1:11 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 | « adblockplus.gyp ('k') | src/shared/Utils.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/shared/Utils.h
===================================================================
--- a/src/shared/Utils.h
+++ b/src/shared/Utils.h
@@ -23,6 +23,7 @@
#include <functional>
#include <string>
#include <vector>
+#include <wtypes.h>
#define WM_ALREADY_UP_TO_DATE WM_APP+1
#define WM_UPDATE_CHECK_ERROR WM_APP+2
@@ -51,6 +52,7 @@
bool IsWindowsVistaOrLater();
bool IsWindows8OrLater();
+std::wstring ToWstring(const BSTR b);
std::string ToUtf8String(const std::wstring& str);
std::wstring ToUtf16String(const std::string& str);
std::vector<std::wstring> ToUtf16Strings(const std::vector<std::string>& value);
« no previous file with comments | « adblockplus.gyp ('k') | src/shared/Utils.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld