mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-07-27 07:44:24 +02:00
Remove more cast
This commit is contained in:
parent
38bf6ecc35
commit
23b8b3edf6
@ -2014,7 +2014,7 @@ void Notepad_plus::filePrint(bool showDialog)
|
||||
intptr_t startPos = _pEditView->execute(SCI_GETSELECTIONSTART);
|
||||
intptr_t endPos = _pEditView->execute(SCI_GETSELECTIONEND);
|
||||
|
||||
printer.init(_pPublicInterface->getHinst(), _pPublicInterface->getHSelf(), _pEditView, showDialog, int(startPos), int(endPos), _nativeLangSpeaker.isRTL());
|
||||
printer.init(_pPublicInterface->getHinst(), _pPublicInterface->getHSelf(), _pEditView, showDialog, startPos, endPos, _nativeLangSpeaker.isRTL());
|
||||
printer.doPrint();
|
||||
}
|
||||
|
||||
|
@ -388,7 +388,7 @@ void FunctionCallTip::showCalltip()
|
||||
psize = _overloads.at(i).size()+1;
|
||||
if (_currentParam < psize)
|
||||
{
|
||||
_currentOverload = static_cast<int32_t>(i);
|
||||
_currentOverload = i;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -27,7 +27,7 @@ void replaceStr(generic_string & str, generic_string str2BeReplaced, generic_str
|
||||
str.replace(pos, str2BeReplaced.length(), replacement);
|
||||
}
|
||||
|
||||
void Printer::init(HINSTANCE hInst, HWND hwnd, ScintillaEditView *pSEView, bool showDialog, int startPos, int endPos, bool isRTL)
|
||||
void Printer::init(HINSTANCE hInst, HWND hwnd, ScintillaEditView *pSEView, bool showDialog, size_t startPos, size_t endPos, bool isRTL)
|
||||
{
|
||||
_pSEView = pSEView;
|
||||
_startPos = startPos;
|
||||
|
@ -33,7 +33,7 @@ class Printer
|
||||
public :
|
||||
Printer() = default;
|
||||
|
||||
void init(HINSTANCE hInst, HWND hwnd, ScintillaEditView *pSEView, bool showDialog, int startPos, int endPos, bool isRTL = false);
|
||||
void init(HINSTANCE hInst, HWND hwnd, ScintillaEditView *pSEView, bool showDialog, size_t startPos, size_t endPos, bool isRTL = false);
|
||||
size_t doPrint() {
|
||||
if (!::PrintDlg(&_pdlg))
|
||||
return 0;
|
||||
|
@ -170,7 +170,7 @@ intptr_t CALLBACK ColumnEditorDlg::run_dlgProc(UINT message, WPARAM wParam, LPAR
|
||||
|
||||
s2r.insert(posRelative2Start, str);
|
||||
}
|
||||
(*_ppEditView)->replaceTarget(s2r.c_str(), int(lineBegin), int(lineEnd));
|
||||
(*_ppEditView)->replaceTarget(s2r.c_str(), lineBegin, lineEnd);
|
||||
}
|
||||
delete [] line;
|
||||
}
|
||||
|
@ -270,7 +270,7 @@ void DocumentMap::scrollMapWith(const MapPosition & mapPos)
|
||||
}
|
||||
else
|
||||
{
|
||||
higherY = _pMapView->execute(SCI_POINTYFROMPOSITION, 0, static_cast<int32_t>(mapPos._higherPos));
|
||||
higherY = _pMapView->execute(SCI_POINTYFROMPOSITION, 0, mapPos._higherPos);
|
||||
auto lineHeight = _pMapView->execute(SCI_TEXTHEIGHT, mapPos._firstVisibleDocLine);
|
||||
lowerY = mapPos._nbLine * lineHeight + higherY;
|
||||
}
|
||||
|
@ -79,7 +79,7 @@ size_t FunctionListPanel::getBodyClosePos(size_t begin, const TCHAR *bodyOpenSym
|
||||
|
||||
size_t docLen = (*_ppEditView)->getCurrentDocLen();
|
||||
|
||||
if (begin >= (size_t)docLen)
|
||||
if (begin >= docLen)
|
||||
return docLen;
|
||||
|
||||
generic_string exprToSearch = TEXT("(");
|
||||
|
@ -661,7 +661,7 @@ void FunctionParser::getInvertZones(vector< pair<size_t, size_t> > & destZones,
|
||||
else
|
||||
{
|
||||
// check the begin
|
||||
if (int(begin) < sourceZones[0].first)
|
||||
if (begin < sourceZones[0].first)
|
||||
{
|
||||
destZones.push_back(pair<size_t, size_t>(begin, sourceZones[0].first - 1));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user