]> git.lyx.org Git - lyx.git/blobdiff - src/Compare.cpp
Re-organization of Additional Features manual by John Hudson.
[lyx.git] / src / Compare.cpp
index f5046bd2e156dfcbfb11b5b64bc2f551eb6b5600..68570b85b5fcee49befc572ec5accf9b3e7bd109 100644 (file)
@@ -61,10 +61,10 @@ public:
                : from(from_), to(to_)
        {}
 
-       DocRange(Buffer const * buf)
+       DocRange(Buffer const * buf) :
+               from(doc_iterator_begin(buf)),
+               to(doc_iterator_end(buf))
        {
-               from = doc_iterator_begin(buf);
-               to = doc_iterator_end(buf);
                to.backwardPos();
        }