diff options
Diffstat (limited to 'plugins/Quotes/src/Locale.cpp')
-rw-r--r-- | plugins/Quotes/src/Locale.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/plugins/Quotes/src/Locale.cpp b/plugins/Quotes/src/Locale.cpp index 25584e360a..fe1427dac7 100644 --- a/plugins/Quotes/src/Locale.cpp +++ b/plugins/Quotes/src/Locale.cpp @@ -12,24 +12,24 @@ namespace tstring sResult;
HKEY hKey = NULL;
LONG lResult = ::RegOpenKeyEx(HKEY_CURRENT_USER,
- _T("Control Panel\\International"),0,KEY_QUERY_VALUE,&hKey);
+ _T("Control Panel\\International"), 0, KEY_QUERY_VALUE, &hKey);
if ((ERROR_SUCCESS == lResult) && (NULL != hKey))
{
DWORD dwType = 0;
DWORD dwSize = 0;
- lResult = ::RegQueryValueEx(hKey,pszValueName,nullptr,&dwType,nullptr,&dwSize);
+ lResult = ::RegQueryValueEx(hKey, pszValueName, nullptr, &dwType, nullptr, &dwSize);
if ((ERROR_SUCCESS == lResult) && ((REG_SZ == dwType) || (REG_EXPAND_SZ == dwType)))
{
std::vector<TCHAR> aBuffer(dwSize);
- lResult = ::RegQueryValueEx(hKey,pszValueName,nullptr,nullptr,reinterpret_cast<LPBYTE>(&*aBuffer.begin()),&dwSize);
- if(ERROR_SUCCESS == lResult)
+ lResult = ::RegQueryValueEx(hKey, pszValueName, nullptr, nullptr, reinterpret_cast<LPBYTE>(&*aBuffer.begin()), &dwSize);
+ if (ERROR_SUCCESS == lResult)
{
- std::copy(aBuffer.begin(),aBuffer.end(),std::back_inserter(sResult));
+ std::copy(aBuffer.begin(), aBuffer.end(), std::back_inserter(sResult));
}
}
}
- if(NULL != hKey)
+ if (NULL != hKey)
{
lResult = ::RegCloseKey(hKey);
assert(ERROR_SUCCESS == lResult);
@@ -41,11 +41,11 @@ namespace tstring date_win_2_boost(const tstring& sFrmt)
{
tstring sResult(_T("%d.%m.%y"));
- if(sFrmt == _T("dd/MM/yy"))
+ if (sFrmt == _T("dd/MM/yy"))
{
sResult = _T("%d/%m/%y");
}
- else if(sFrmt == _T("yyyy-MM-dd"))
+ else if (sFrmt == _T("yyyy-MM-dd"))
{
sResult = _T("%y-%m-%d");
}
@@ -55,7 +55,7 @@ namespace tstring time_win_2_boost(const tstring& sFrmt)
{
tstring sResult = _T("%H:%M:%S");
- if(sFrmt == _T("H:mm") || sFrmt == _T("HH:mm"))
+ if (sFrmt == _T("H:mm") || sFrmt == _T("HH:mm"))
{
sResult = _T("%H:%M");
}
|