]> git.lyx.org Git - features.git/commitdiff
Fix comments
authorRichard Kimberly Heck <rikiheck@lyx.org>
Fri, 13 Nov 2020 01:13:19 +0000 (20:13 -0500)
committerRichard Kimberly Heck <rikiheck@lyx.org>
Fri, 13 Nov 2020 01:13:19 +0000 (20:13 -0500)
src/insets/InsetInclude.cpp
src/mathed/InsetMathMacroTemplate.cpp

index 79ecaec639df151c7811d7c62e525da7dcedda9e..8088e618a015147be7150b084b9c0c555f25e679 100644 (file)
@@ -1406,10 +1406,8 @@ void InsetInclude::updateMacros(DocIterator const & us, DocIterator const & scop
        loadIfNeeded();
        buffer().clearMacroLock();
        if (child_buffer_) {
-               // We want an iterator that just points at the location of this inset,
+               // We want an iterator that points at the location of this inset,
                // whereas the one we were passed has us on top.
-               // At least, that is how the updateMacros code was before RKH modified
-               // it. That is not to say they quite understand why it was like that.
                DocIterator it = us;
                it.pop_back();
                buffer().registerChild(child_buffer_, it, scope);
index a445b4dd83bcfb51eb058c427f9257116ea86cd3..bec791d71b5e62be6d1c8d8d09cb540395ebd2d3 100644 (file)
@@ -462,8 +462,8 @@ docstring InsetMathMacroTemplate::name() const
 
 void InsetMathMacroTemplate::updateMacros(DocIterator const & us, DocIterator const & scope)
 {
-       // This matches the previous code, but I am not sure why it
-       // should be like this.
+       // We want an interator here that points at this inset. The
+       // one we were passed has us on top.
        DocIterator it = us;
        it.pop_back();
        MacroContext mc(&buffer(), it);