Fix the build error

This commit is contained in:
Don HO 2020-09-30 04:47:32 +02:00
parent 285172e36b
commit bb175082d2
No known key found for this signature in database
GPG Key ID: 6C429F1D8D84F46E
2 changed files with 4 additions and 4 deletions

View File

@ -650,8 +650,8 @@ LRESULT Notepad_plus::process(HWND hwnd, UINT message, WPARAM wParam, LPARAM lPa
case NPPM_INTERNAL_CHANGETABBAEICONS: case NPPM_INTERNAL_CHANGETABBAEICONS:
{ {
_mainDocTab.changeIcons(lParam); _mainDocTab.changeIcons(static_cast<unsigned char>(lParam));
_subDocTab.changeIcons(lParam); _subDocTab.changeIcons(static_cast<unsigned char>(lParam));
return TRUE; return TRUE;
} }

View File

@ -45,7 +45,7 @@ public :
TabBarPlus::destroy(); TabBarPlus::destroy();
}; };
void init(HINSTANCE hInst, HWND parent, ScintillaEditView * pView, std::vector<IconList *> pIconListVector, size_t indexChoice) { void init(HINSTANCE hInst, HWND parent, ScintillaEditView * pView, std::vector<IconList *> pIconListVector, unsigned char indexChoice) {
TabBarPlus::init(hInst, parent); TabBarPlus::init(hInst, parent);
_pView = pView; _pView = pView;
@ -64,7 +64,7 @@ public :
return; return;
}; };
void changeIcons(size_t choice) { void changeIcons(unsigned char choice) {
if (choice >= _pIconListVector.size()) if (choice >= _pIconListVector.size())
return; return;
_iconListIndexChoice = choice; _iconListIndexChoice = choice;