 Issue 5733210436665344:
  Issue #1234 - Remove local CString variable from TraverseDocument()  (Closed)
    
  
    Issue 5733210436665344:
  Issue #1234 - Remove local CString variable from TraverseDocument()  (Closed) 
  | 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); | 
| +} |