]> git.lyx.org Git - features.git/blobdiff - src/Text.cpp
Do not initialize a var to a val that's never used
[features.git] / src / Text.cpp
index 80babde39a58a65b8361faab62e329891f5c9f1e..fe59cb3f7108170c3ded2b0cc5d0c8ece3c37f2c 100644 (file)
@@ -1266,7 +1266,7 @@ void Text::selectWord(Cursor & cur, word_location loc)
 {
        LBUFERR(this == cur.text());
        CursorSlice from = cur.top();
-       CursorSlice to = cur.top();
+       CursorSlice to;
        getWord(from, to, loc);
        if (cur.top() != from)
                setCursor(cur, from.pit(), from.pos());