Use the new CString constructor in various places to make them more readable

git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1245 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
psychon
2008-10-10 17:58:36 +00:00
parent 88a993a63a
commit 0a4e4a10a6
3 changed files with 15 additions and 15 deletions
+6 -6
View File
@@ -158,13 +158,13 @@ public:
Table.SetCell("Value", "*****"); // m_sPassword
Table.AddRow();
Table.SetCell("Setting", "UseCloakedHost");
Table.SetCell("Value", CString(m_bUseCloakedHost ? "true" : "false"));
Table.SetCell("Value", CString(m_bUseCloakedHost));
Table.AddRow();
Table.SetCell("Setting", "UseChallenge");
Table.SetCell("Value", CString(m_bUseChallenge ? "true" : "false"));
Table.SetCell("Value", CString(m_bUseChallenge));
Table.AddRow();
Table.SetCell("Setting", "RequestPerms");
Table.SetCell("Value", CString(m_bRequestPerms ? "true" : "false"));
Table.SetCell("Value", CString(m_bRequestPerms));
PutModule(Table);
} else if (sCommand == "status") {
@@ -469,17 +469,17 @@ private:
void SetUseCloakedHost(const bool bUseCloakedHost) {
m_bUseCloakedHost = bUseCloakedHost;
SetNV("UseCloakedHost", CString(bUseCloakedHost ? "true" : "false"));
SetNV("UseCloakedHost", CString(bUseCloakedHost));
}
void SetUseChallenge(const bool bUseChallenge) {
m_bUseChallenge = bUseChallenge;
SetNV("UseChallenge", CString(bUseChallenge ? "true" : "false"));
SetNV("UseChallenge", CString(bUseChallenge));
}
void SetRequestPerms(const bool bRequestPerms) {
m_bRequestPerms = bRequestPerms;
SetNV("RequestPerms", CString(bRequestPerms ? "true" : "false"));
SetNV("RequestPerms", CString(bRequestPerms));
}
};