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

Delta Between Two Patch Sets: src/plugin/PluginUtil.cpp

Issue 10825021: Move settings page into the application directory (Closed)
Left Patch Set: Created June 3, 2013, 11:40 a.m.
Right Patch Set: Fixed nit and removed copying of html directory Created June 4, 2013, 9:15 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « src/plugin/PluginUtil.h ('k') | no next file » | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 #include "PluginStdAfx.h" 1 #include "PluginStdAfx.h"
2 #include <algorithm> 2 #include <algorithm>
3 #include <stdexcept> 3 #include <stdexcept>
4 #include <vector> 4 #include <vector>
5 5
6 #include "PluginUtil.h" 6 #include "PluginUtil.h"
7 #include "PluginSettings.h" 7 #include "PluginSettings.h"
8 8
9 BString::BString(const std::wstring& value) 9 BString::BString(const std::wstring& value)
10 : value(::SysAllocString(value.c_str())) 10 : value(::SysAllocString(value.c_str()))
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 return FileUrl(DllDir() + L"html\\templates\\index.html"); 56 return FileUrl(DllDir() + L"html\\templates\\index.html");
57 } 57 }
58 58
59 std::wstring FileUrl(const std::wstring& path) 59 std::wstring FileUrl(const std::wstring& path)
60 { 60 {
61 std::wstring url = path; 61 std::wstring url = path;
62 std::replace(url.begin(), url.end(), L'\\', L'/'); 62 std::replace(url.begin(), url.end(), L'\\', L'/');
63 return L"file:///" + url; 63 return L"file:///" + url;
64 } 64 }
65 65
LEFTRIGHT

Powered by Google App Engine
This is Rietveld