]> git.lyx.org Git - features.git/blobdiff - src/Text.cpp
Move Color::color enum to ColorCode.h
[features.git] / src / Text.cpp
index 902a4df75c5da33ca2a4226ad21bc67a5711c514..44f14e185dcebb7fccfd38d3d9c5906fe76c3fab 100644 (file)
@@ -38,7 +38,6 @@
 #include "FontIterator.h"
 #include "gettext.h"
 #include "Language.h"
-#include "Color.h"
 #include "Length.h"
 #include "Lexer.h"
 #include "LyXRC.h"
@@ -852,9 +851,8 @@ void Text::changeCase(Cursor & cur, TextCase action)
 
        for (pit_type pit = begPit; pit <= endPit; ++pit) {
                Paragraph & par = pars_[pit];
-               pos_type parSize = par.size();
-               pos_type pos = (pit == begPit ? begPos : 0);
-               right = (pit == endPit ? endPos : parSize);
+               pos_type const pos = (pit == begPit ? begPos : 0);
+               right = (pit == endPit ? endPos : par.size());
                par.changeCase(cur.buffer().params(), pos, right, action);
        }