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

Unified Diff: src/plugin/PluginClass.cpp

Issue 4772743157383168: Issue #276 - eliminate CString from GetBrowserLanguage (Closed)
Patch Set: Created July 30, 2014, 8:50 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/Plugin.cpp ('k') | src/plugin/PluginSettings.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/plugin/PluginClass.cpp
===================================================================
--- a/src/plugin/PluginClass.cpp
+++ b/src/plugin/PluginClass.cpp
@@ -94,10 +94,7 @@
m_tab = new CPluginTab(this);
- CPluginSystem* system = CPluginSystem::GetInstance();
-
- std::wstring locale((LPCWSTR)system->GetBrowserLanguage());
- Dictionary::Create(locale);
+ Dictionary::Create(GetBrowserLanguage());
}
CPluginClass::~CPluginClass()
@@ -256,7 +253,6 @@
STDMETHODIMP CPluginClass::SetSite(IUnknown* unknownSite)
{
CPluginSettings* settings = CPluginSettings::GetInstance();
- CPluginSystem* system = CPluginSystem::GetInstance();
MULTIPLE_VERSIONS_CHECK();
@@ -1266,8 +1262,6 @@
{
CPluginClient* client = CPluginClient::GetInstance();
- CPluginSystem* system = CPluginSystem::GetInstance();
-
// Create menu parent window
HWND hMenuWnd = ::CreateWindowEx(
NULL,
@@ -1675,8 +1669,6 @@
return ::DefWindowProc(hWnd, message, wParam, lParam);
}
- CPluginSystem* system = CPluginSystem::GetInstance();
-
// Process message
switch (message)
{
« no previous file with comments | « src/plugin/Plugin.cpp ('k') | src/plugin/PluginSettings.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld