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

Unified Diff: src/plugin/PluginUtil.cpp

Issue 4859310991474688: Issue 1681 - Incorrect usage of BString (Closed)
Patch Set: prevent warning of implicit conversion from std::wstring::size_type (size_t here) to signed int Created Dec. 12, 2014, 4:01 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/PluginUtil.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/plugin/PluginUtil.cpp
diff --git a/src/plugin/PluginUtil.cpp b/src/plugin/PluginUtil.cpp
index a13922579237ede92f70fed750c75f219f1daf47..a077d4e7e6058fa0cd1361d0ace6ad8f0e3597d8 100644
--- a/src/plugin/PluginUtil.cpp
+++ b/src/plugin/PluginUtil.cpp
@@ -7,21 +7,6 @@
#include "PluginUtil.h"
#include "PluginSettings.h"
-BString::BString(const std::wstring& value)
- : value(::SysAllocString(value.c_str()))
-{
-}
-
-BString::~BString()
-{
- ::SysFreeString(value);
-}
-
-BString::operator BSTR()
-{
- return value;
-}
-
std::wstring HtmlFolderPath()
{
return GetDllDir() + L"html\\templates\\";
« no previous file with comments | « src/plugin/PluginUtil.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld