summaryrefslogtreecommitdiff
path: root/plugins/CurrencyRates/src/DBUtils.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2019-02-15 12:31:26 +0300
committerGeorge Hazan <ghazan@miranda.im>2019-02-15 12:31:26 +0300
commitd061852f027e57625d7bdfd445469d9a29b1eb07 (patch)
tree3911c297149ed0f097c3db91253c0f4120eb0d17 /plugins/CurrencyRates/src/DBUtils.cpp
parent0ad0b41c6c42e0a346a7755de39dd03d4f25142d (diff)
CurrencyRates: code cleaning
Diffstat (limited to 'plugins/CurrencyRates/src/DBUtils.cpp')
-rw-r--r--plugins/CurrencyRates/src/DBUtils.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/CurrencyRates/src/DBUtils.cpp b/plugins/CurrencyRates/src/DBUtils.cpp
index 571bad0bfb..fa3df0c528 100644
--- a/plugins/CurrencyRates/src/DBUtils.cpp
+++ b/plugins/CurrencyRates/src/DBUtils.cpp
@@ -9,7 +9,7 @@ std::wstring GetNodeText(const TiXmlElement *pNode)
return std::wstring();
}
-std::wstring CurrencyRates_DBGetStringW(MCONTACT hContact, const char* szModule, const char* szSetting, const wchar_t* pszDefValue)
+std::wstring CurrencyRates_DBGetStringW(MCONTACT hContact, const char *szModule, const char *szSetting, const wchar_t *pszDefValue)
{
if (pszDefValue == nullptr)
pszDefValue = L"";
@@ -17,14 +17,14 @@ std::wstring CurrencyRates_DBGetStringW(MCONTACT hContact, const char* szModule,
return std::wstring(ptrW(db_get_wsa(hContact, szModule, szSetting, pszDefValue)));
}
-bool CurrencyRates_DBWriteDouble(MCONTACT hContact, const char* szModule, const char* szSetting, double dValue)
+bool CurrencyRates_DBWriteDouble(MCONTACT hContact, const char *szModule, const char *szSetting, double dValue)
{
return 0 == db_set_blob(hContact, szModule, szSetting, &dValue, sizeof(dValue));
}
-bool CurrencyRates_DBReadDouble(MCONTACT hContact, const char* szModule, const char* szSetting, double& rdValue)
+bool CurrencyRates_DBReadDouble(MCONTACT hContact, const char *szModule, const char *szSetting, double& rdValue)
{
- DBVARIANT dbv = { 0 };
+ DBVARIANT dbv = {};
dbv.type = DBVT_BLOB;
bool bResult = ((0 == db_get(hContact, szModule, szSetting, &dbv)) && (DBVT_BLOB == dbv.type));