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

Unified Diff: src/plugin/PluginClass.cpp

Issue 29330618: Issue #1234 - Eliminate CString from PluginSettings.* and PluginUserSettings.* (Closed)
Patch Set: address comments Created Nov. 25, 2015, 5:15 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/AdblockPlusClient.h ('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
@@ -1125,7 +1125,6 @@
}
case ID_MENU_DISABLE_ON_SITE:
{
- CPluginSettings* settings = CPluginSettings::GetInstance();
std::wstring urlString = GetTab()->GetDocumentUrl();
std::string filterText = client->GetWhitelistingFilter(urlString);
if (!filterText.empty())
@@ -1134,7 +1133,7 @@
}
else
{
- settings->AddWhiteListedDomain(ToCString(client->GetHostFromUrl(urlString)));
+ CPluginSettings::GetInstance()->AddWhiteListedDomain(client->GetHostFromUrl(urlString));
}
}
default:
« no previous file with comments | « src/plugin/AdblockPlusClient.h ('k') | src/plugin/PluginSettings.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld