]> git.lyx.org Git - features.git/commitdiff
small simplification.
authorAbdelrazak Younes <younes@lyx.org>
Wed, 24 Oct 2007 08:32:20 +0000 (08:32 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Wed, 24 Oct 2007 08:32:20 +0000 (08:32 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21169 a592a061-630c-0410-9148-cb99ea01b6c8

src/Text.cpp

index 902a4df75c5da33ca2a4226ad21bc67a5711c514..3950d6ebc5e41662498aab049173c422b29c8228 100644 (file)
@@ -852,9 +852,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);
        }