]> git.lyx.org Git - features.git/commitdiff
Fix documentation of UndoGroupHelper
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Fri, 12 Nov 2021 15:47:41 +0000 (16:47 +0100)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Fri, 12 Nov 2021 15:49:01 +0000 (16:49 +0100)
src/Undo.h

index 887f7627e1d54854800a34c00678971f77d1f63e..bdcf95458b0dad59702b75be05aa6daaaf50cd64 100644 (file)
@@ -130,19 +130,18 @@ private:
 
 /** Helper class to simplify the use of undo groups across several buffers.
  *
- *  The undo group is created when the object is instanciated; it is
+ *  The undo group is created when the object is instantiated; it is
  *  then ended as the object goes out of scope or the buffer is reset
  *  (see below)
  */
 class UndoGroupHelper {
 public:
+       // Create a new undo group for buffer \c buf.
        UndoGroupHelper(Buffer * buf);
-
+       // End all created undo groups.
        ~UndoGroupHelper();
 
-       /** Close the current undo group if necessary and create a new one
-        * for buffer \c buf.
-        */
+       // Create an additional undo group for buffer \c buf.
        void resetBuffer(Buffer * buf);
 
 private: