]> git.lyx.org Git - features.git/blobdiff - src/insets/InsetArgument.cpp
Fix warnings reported by clang
[features.git] / src / insets / InsetArgument.cpp
index 2e4285e7fef5ca48f341717e3080ed0f3420fdf1..804be7adc623ea81b298f6192e2ff4c55f4125dd 100644 (file)
@@ -59,7 +59,7 @@ void InsetArgument::updateBuffer(ParIterator const & it, UpdateType utype)
 {
        Layout::LaTeXArgMap args = it.paragraph().layout().args();
        pass_thru_ = it.paragraph().layout().pass_thru;
-       bool const insetlayout = &it.inset() && args.empty();
+       bool const insetlayout = args.empty();
        if (insetlayout) {
                args = it.inset().getLayout().args();
                pass_thru_ = it.inset().getLayout().isPassThru();
@@ -190,7 +190,7 @@ bool InsetArgument::getStatus(Cursor & cur, FuncRequest const & cmd,
                                return true;
                        }
                        Layout::LaTeXArgMap args;
-                       bool const insetlayout = &cur.inset() && cur.paragraph().layout().latexargs().empty();
+                       bool const insetlayout = cur.paragraph().layout().latexargs().empty();
                        if (insetlayout)
                                args = cur.inset().getLayout().latexargs();
                        else