]> git.lyx.org Git - lyx.git/blobdiff - src/text2.C
Implement os::current_root for native Win32 builds.
[lyx.git] / src / text2.C
index 55f9d4e1ada06aa8de6413ce27cab7f060a72932..44e897db0fae661c17a8c4ec35b665381cc095fd 100644 (file)
@@ -336,7 +336,7 @@ void LyXText::setLayout(LCursor & cur, string const & layout)
 
        pit_type start = cur.selBegin().pit();
        pit_type end = cur.selEnd().pit() + 1;
-       pit_type endpit = setLayout(start, end, layout);
+       setLayout(start, end, layout);
        updateCounters();
 }
 
@@ -1423,8 +1423,6 @@ bool LyXText::deleteEmptyParagraphMechanism(LCursor & cur, LCursor const & old)
 
        if (oldpar.empty() || (oldpar.size() == 1 && oldpar.isLineSeparator(0))) {
                // ok, we will delete something
-               CursorSlice tmpcursor;
-
                deleted = true;
 
                bool selection_position_was_oldcursor_position =