Should have spaces around the statement, and it should be flagged as const: float getAverageLoudness() const { return _averageLoudness; }