DWORD dwKeyBind = _countof(szKeyBind);\r
for (DWORD dwIndex = 0; RegEnumKeyEx(hKey, dwIndex, szKeyBind, &dwKeyBind, NULL, NULL, NULL, NULL) == ERROR_SUCCESS; ++dwIndex) {\r
int nType, nKey;\r
- ReadKeyBind(&nType, &nKey, szKeyBind);\r
+ ReadKeyBind(nType, nKey, szKeyBind);\r
m_Config.nCommandID[nAppID][nType][nKey] = nComID;\r
dwKeyBind = _countof(szKeyBind);\r
}\r
DWORD dwKeyBind = _countof(szKeyBind);\r
for (DWORD dwIndex = 0; RegEnumKeyEx(hKey, dwIndex, szKeyBind, &dwKeyBind, NULL, NULL, NULL, NULL) == ERROR_SUCCESS; ++dwIndex) {\r
int nType, nKey;\r
- ReadKeyBind(&nType, &nKey, szKeyBind);\r
+ ReadKeyBind(nType, nKey, szKeyBind);\r
CDotXkeymacs::SetKey(nFuncID, nAppID, nType, nKey);\r
dwKeyBind = _countof(szKeyBind);\r
}\r
pApp->SendIPCMessage(XKEYMACS_RELOAD);\r
}\r
\r
-void CProfile::ReadKeyBind(int *const pnCommandType, int *const pnKey, LPCTSTR szKeyBind)\r
+void CProfile::ReadKeyBind(int& nCommandType, int& nKey, const LPCTSTR szKeyBind)\r
{\r
- *pnCommandType = KeyBind2CommandType(szKeyBind);\r
- *pnKey = KeyBind2Key(szKeyBind + _tcslen(CommandType2String(*pnCommandType)));\r
+ nCommandType = KeyBind2CommandType(szKeyBind);\r
+ nKey = KeyBind2Key(szKeyBind + _tcslen(CommandType2String(nCommandType)));\r
}\r
\r
CString CProfile::WriteKeyBind(const int nType, const int nKey)\r
DWORD dwKeyBind = sizeof(szKeyBind);\r
FILETIME ft = {'\0'}; // not use\r
for (DWORD dwIndex = 0; RegEnumKeyEx(hKey, dwIndex, szKeyBind, &dwKeyBind, NULL, NULL, NULL, &ft) == ERROR_SUCCESS; ++dwIndex) {\r
- int nType = 0;\r
- int nKey = 0;\r
- ReadKeyBind(&nType, &nKey, szKeyBind);\r
+ int nType, nKey;\r
+ ReadKeyBind(nType, nKey, szKeyBind);\r
SaveKeyBind(szApplicationName, CDotXkeymacs::GetFunctionSymbol(nFuncID), nType, nKey);\r
\r
memset(szKeyBind, 0, sizeof(szKeyBind));\r
static void SetUseDialogSetting(int nAppID, BOOL bUseDialogSetting);\r
static int GetApplicationIndex(CString szApplicationName);\r
static void CopyData(CString szDestinationApplication, CString szSourceApplication);\r
- static void ReadKeyBind(int *pnCommandType, int *pnKey, LPCTSTR szKeyBind);\r
+ static void ReadKeyBind(int& pnCommandType, int& pnKey, LPCTSTR szKeyBind);\r
static LPCTSTR Key2String(int nKey);\r
static LPCTSTR CommandType2String(int nType);\r
static int GetCurrentApplicationID(CComboBox *cApplicationList, CString szCurrentApplication);\r