Fixed a few warnings in headers (meaning they were reported once for each include)

Fixed an identification of CXX compiler in cmake so that 'AppleClang' is recognized
This commit is contained in:
Lukas Matena 2019-07-23 11:22:54 +02:00
parent 506be9035b
commit 91a5d70a62
6 changed files with 12 additions and 12 deletions

View file

@ -323,9 +323,9 @@ public:
}
bool SwapChildrens(int frst_id, int scnd_id) {
if (GetChildCount() < 2 ||
frst_id < 0 || frst_id >= GetChildCount() ||
scnd_id < 0 || scnd_id >= GetChildCount())
if (GetChildCount() < 2 ||
frst_id < 0 || (size_t)frst_id >= GetChildCount() ||
scnd_id < 0 || (size_t)scnd_id >= GetChildCount())
return false;
ObjectDataViewModelNode new_scnd = *GetNthChild(frst_id);