GcodeDisplay: Use iterator instead of indexing
authorBen Gamari <bgamari.foss@gmail.com>
Sun, 10 Feb 2013 21:53:38 +0000 (16:53 -0500)
committerBen Gamari <bgamari.foss@gmail.com>
Mon, 11 Feb 2013 00:02:21 +0000 (19:02 -0500)
commit7a2ca498c6a4cb5c78b168b3bbf18ea3808701e5
tree25c8d95fb35a646b5e8408dccbf0c26868f8627a
parent99eae007b58416eb03305a9e0157e471c57477ee
GcodeDisplay: Use iterator instead of indexing

This avoids allocations due to _M_leak since possible_command is
mutable.
src/modules/communication/GcodeDispatch.cpp