]> git.lyx.org Git - features.git/commit
Do not initialize a var to a val that's never used
authorScott Kostyshak <skostysh@lyx.org>
Sat, 19 Dec 2015 02:58:22 +0000 (21:58 -0500)
committerScott Kostyshak <skostysh@lyx.org>
Sun, 3 Jan 2016 16:57:19 +0000 (11:57 -0500)
commit752c67ada941fdbb6f83311face094fde3ea8924
treeb8d5876be0f665dbf9e29346865978e0623943ac
parent7dd7980720a86737020714025fa016321336a9e6
Do not initialize a var to a val that's never used

By initializing 'to' to a value, the code made it seem like that
value mattered. But the value is overwritten in getWord().

Further, now if 'to' is used before it is initialized, there might
be a useful compiler warning that could point to a bug.
src/Text.cpp