]> git.lyx.org Git - features.git/commitdiff
producesOutput() should not be redeclared as producesOutput(bool).
authorRichard Heck <rgheck@lyx.org>
Sun, 28 Aug 2016 04:02:43 +0000 (00:02 -0400)
committerRichard Heck <rgheck@lyx.org>
Sun, 28 Aug 2016 04:04:02 +0000 (00:04 -0400)
src/insets/InsetBranch.cpp
src/insets/InsetBranch.h

index 073072b47dec4b03182422c787320e5dfbb54480..e22555ba79fbc911ba754e1eb008af3cc52a3eff 100644 (file)
@@ -77,8 +77,9 @@ docstring InsetBranch::toolTip(BufferView const & bv, int, int) const
 
        docstring const masteron = producesOutput() ?
                _("on") : _("off");
-       docstring const childon = producesOutput(true) ?
-               _("on") : _("off");
+       docstring const childon =
+               (isBranchSelected(true) != params_.inverted) ?
+                       _("on") : _("off");
        docstring const onoff = (masteron == childon) ?
                masteron :
                support::bformat(_("master %1$s, child %2$s"),
@@ -105,7 +106,7 @@ docstring const InsetBranch::buttonLabel(BufferView const &) const
        bool const inchild = buffer().params().branchlist().find(params_.branch);
 
        bool const master_selected = producesOutput();
-       bool const child_selected = producesOutput(true);
+       bool const child_selected = isBranchSelected(true) != params_.inverted;
 
        docstring symb = docstring(1, master_selected ? tick : cross);
        if (inchild && master_selected != child_selected)
@@ -284,9 +285,9 @@ bool InsetBranch::isBranchSelected(bool const child) const
 }
 
 
-bool InsetBranch::producesOutput(bool const child) const
+bool InsetBranch::producesOutput() const
 {
-       return isBranchSelected(child) != params_.inverted;
+       return isBranchSelected() != params_.inverted;
 }
 
 
index afb07d1c12c801afba72e00b5a149798d85c12cc..83783e71ebaadb9e4650cfcf8544167360201c3d 100644 (file)
@@ -103,7 +103,7 @@ private:
         * Note that Branch insets are considered part of the
         * document when they are selected XOR inverted.
         */
-       bool producesOutput(bool const child = false) const;
+       bool producesOutput() const;
        ///
        bool getStatus(Cursor &, FuncRequest const &, FuncStatus &) const;
        ///