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

Unified Diff: src/plugin/PluginUtil.h

Issue 5733210436665344: Issue #1234 - Remove local CString variable from TraverseDocument() (Closed)
Patch Set: Created May 20, 2015, 8:25 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') | test/plugin/UtilTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/plugin/PluginUtil.h
===================================================================
--- a/src/plugin/PluginUtil.h
+++ b/src/plugin/PluginUtil.h
@@ -17,9 +17,16 @@
#pragma once
#include <string>
+#include <ExDisp.h>
std::wstring HtmlFolderPath();
std::wstring UserSettingsFileUrl();
std::wstring FirstRunPageFileUrl();
std::wstring FileUrl(const std::wstring& url);
-std::wstring GetLocationUrl(IWebBrowser2& browser);
+std::wstring GetLocationUrl(IWebBrowser2& browser);
+
+template<class CharT, class Traits, class Alloc, size_t N>
+bool BeginsWith(const std::basic_string<CharT, Traits, Alloc> s, const CharT(&beginning)[N])
sergei 2015/10/01 16:23:42 reference (&) is missed.
+{
+ return 0 == s.compare(0, N - 1, beginning);
+}
« no previous file with comments | « src/plugin/PluginDomTraverserBase.h ('k') | test/plugin/UtilTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld