I think it is better to declare like 

int getNextFrame() const;