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

Unified Diff: src/plugin/PluginSettings.cpp

Issue 6288156869525504: Issue #276 - eliminate CString from GetDataPath (Closed)
Patch Set: Created July 30, 2014, 8:59 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
« src/plugin/PluginSettings.h ('K') | « src/plugin/PluginSettings.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/plugin/PluginSettings.cpp
===================================================================
--- a/src/plugin/PluginSettings.cpp
+++ b/src/plugin/PluginSettings.cpp
@@ -99,10 +99,9 @@
return hasInstance;
}
-CString CPluginSettings::GetDataPath(const CString& filename)
+std::wstring GetDataPath(const std::wstring& filename)
{
- std::wstring path = ::GetAppDataPath() + L"\\" + static_cast<LPCWSTR>(filename);
- return CString(path.c_str());
+ return GetAppDataPath() + L"\\" + filename;
}
bool CPluginSettings::IsPluginEnabled() const
« src/plugin/PluginSettings.h ('K') | « src/plugin/PluginSettings.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld