Add strict test for whitespace at end of line

More work on coding style
This commit is contained in:
Alexander Bock
2017-11-09 23:47:51 -05:00
parent 7b12a241ed
commit afa1d6d33e
223 changed files with 1402 additions and 961 deletions
+6 -2
View File
@@ -44,7 +44,8 @@ void TuioEar::removeTuioObject(TuioObject*) { }
void TuioEar::addTuioCursor(TuioCursor* tcur) {
_mx.lock();
_tap = false;
// find same id in _list if it exists in _removeList (new input with same ID as a previously stored)
// find same id in _list if it exists in _removeList (new input with same ID as a
// previously stored)
int i = tcur->getSessionID();
std::vector<int>::iterator foundID = std::find_if(
_removeList.begin(),
@@ -93,7 +94,10 @@ void TuioEar::removeTuioCursor(TuioCursor* tcur) {
}
dist /= tcur->getPath().size();
double heldTime = tcur->getPath().back().getTuioTime().getTotalMilliseconds() - tcur->getPath().front().getTuioTime().getTotalMilliseconds();
double heldTime =
tcur->getPath().back().getTuioTime().getTotalMilliseconds() -
tcur->getPath().front().getTuioTime().getTotalMilliseconds();
if (heldTime < 180 && dist < 0.0004 && _list.size() == 1 && _removeList.size() == 1) {
_tapCo = TuioCursor(*tcur);
_tap = true;