]> git.lyx.org Git - lyx.git/blobdiff - src/Undo.h
Russian layouttranslations reviewed by Yuriy, Dec 13 2017.
[lyx.git] / src / Undo.h
index bacce0307e8258139f1e2fd41f0f00fd90223313..b1908a25b322d798980faca3a803c001cf56f8cd 100644 (file)
@@ -88,7 +88,7 @@ public:
        /**
         * This cursor takes precedence over what is passed to recordUndo.
         * In the case of nested groups, only the first cur_before is
-        * taken in account. The cursor is reset at the end of the
+        * taken into account. The cursor is reset at the end of the
         * top-level group.
         */
        void beginUndoGroup(CursorData const & cur_before);
@@ -135,15 +135,9 @@ private:
  */
 class UndoGroupHelper {
 public:
-       UndoGroupHelper(Buffer * buf) : buffer_(0)
-       {
-               resetBuffer(buf);
-       }
+       UndoGroupHelper(Buffer * buf = 0);
 
-       ~UndoGroupHelper()
-       {
-               resetBuffer(0);
-       }
+       ~UndoGroupHelper();
 
        /** Close the current undo group if necessary and create a new one
         * for buffer \c buf.
@@ -151,7 +145,8 @@ public:
        void resetBuffer(Buffer * buf);
 
 private:
-       Buffer * buffer_;
+       class Impl;
+       Impl * const d;
 };