Add constness
Remove unnecessary variable
Change State from public to private
Re-order headers
Remove unnecessary destructor
Format text
Remove commented out unused code
Format text
Add constness
Move variable increments/decrements to function calls
Remove unnecessary variable
Add frame range checks to requestFrame and getFrame