fb_generic: use const int by ref for more safety

Origin commit data
------------------
Branch: ni/coolstream
Commit: 216ebf8365
Author: Thilo Graf <dbt@novatux.de>
Date: 2019-10-27 (Sun, 27 Oct 2019)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
2019-10-27 22:56:50 +01:00
committed by vanhofen
parent 0de9094d5e
commit d9ffa381db
2 changed files with 5 additions and 5 deletions

View File

@@ -1927,7 +1927,7 @@ void CFrameBuffer::setFbArea(int element, int _x, int _y, int _dx, int _dy)
}
}
int CFrameBuffer::checkFbAreaElement(int _x, int _y, int _dx, int _dy, fb_area_t *area)
int CFrameBuffer::checkFbAreaElement(const int& _x, const int& _y, const int& _dx, const int& _dy, const fb_area_t *area)
{
if (fb_no_check)
return FB_PAINTAREA_MATCH_NO;
@@ -1943,7 +1943,7 @@ int CFrameBuffer::checkFbAreaElement(int _x, int _y, int _dx, int _dy, fb_area_t
return FB_PAINTAREA_MATCH_OK;
}
bool CFrameBuffer::_checkFbArea(int _x, int _y, int _dx, int _dy, bool prev)
bool CFrameBuffer::_checkFbArea(const int& _x, const int& _y, const int& _dx, const int& _dy, const bool& prev)
{
if (v_fbarea.empty())
return true;