Rename variable p to project
The outer loop has a variable named p, and while C++ accepts
that inner variables have biggest priority than outer
variables, this could be a potential human mistake.
Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>