C++ : What does a commented arrgument mean?
I am quite new to c++ and since starting have noticed on a few occasions functions with arguments identifiers apparently "commented out". I haven't had any real problems, but I was wondering if it meant anything in particular.
For example, in a function to repaint an object from an example in the QT toolkit (this function is an overridden protected from its parent class).
Code:
void paintEvent(QPaintEvent * /* event */)
{
....
}
Why is it not?:
Code:
void paintEvent(QPaintEvent * event)
{
....
}
So, is there any relevance of "/*event */" rather than just "event" here?