More spacing, and it should be const: int getSamples() const { return sampleCount; }