Index: src/plugin/PluginSettings.cpp |
=================================================================== |
--- a/src/plugin/PluginSettings.cpp |
+++ b/src/plugin/PluginSettings.cpp |
@@ -20,9 +20,9 @@ |
namespace |
{ |
- std::wstring CreateDomainWhitelistingFilter(CString domain) |
+ std::wstring CreateDomainWhitelistingFilter(const CString domain) |
{ |
- return std::wstring(L"@@||" + domain + L"^$document"); |
+ return L"@@||" + domain + L"^$document"; |
} |
} |
@@ -66,8 +66,7 @@ |
CComAutoCriticalSection CPluginSettings::s_criticalSectionLocal; |
-CPluginSettings::CPluginSettings() : |
- m_settingsVersion("1"), m_dwWorkingThreadId(0), m_isPluginEnabledTab(true) |
+CPluginSettings::CPluginSettings() : m_dwWorkingThreadId(0), m_isPluginEnabledTab(true) |
{ |
s_instance = NULL; |
@@ -246,13 +245,12 @@ |
bool CPluginSettings::GetStatusBarAsked() |
{ |
- std::wstring res = CPluginClient::GetInstance()->GetPref(L"statusbarasked"); |
- return res == L"true"; |
+ return CPluginClient::GetInstance()->GetPref(L"statusbarasked", false); |
} |
void CPluginSettings::SetStatusBarAsked() |
{ |
- CPluginClient::GetInstance()->SetPref(L"statusbarasked", L"true"); |
+ CPluginClient::GetInstance()->SetPref(L"statusbarasked", true); |
} |