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: Created Nov. 20, 2015, 6:37 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
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:

Powered by Google App Engine
This is Rietveld