Gcode: Use operator[] instead of string::at to avoid allocation
authorBen Gamari <bgamari.foss@gmail.com>
Wed, 23 Jan 2013 05:03:53 +0000 (00:03 -0500)
committerBen Gamari <bgamari.foss@gmail.com>
Wed, 23 Jan 2013 05:18:13 +0000 (00:18 -0500)
commiteb3926d989d63316dd08be6650dfda0f21c0b46b
tree0ba4b578ebe0c01d03c6d17bf5608550f6ac29f4
parent44912e95c029f317d02129d718e2e3bda9cfcd91
Gcode: Use operator[] instead of string::at to avoid allocation

Not entire sure why string::at allocates, but we don't need bounds
checking regardless. Perhaps this is due to const-ness?
src/modules/communication/utils/Gcode.cpp