]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/Menus.cpp
Initialize class members to please coverity
[lyx.git] / src / frontends / qt4 / Menus.cpp
index 535ee31d865d258de1799bfc61b9485f1359893c..3e2d3c2884c65ca070ce8887493bb6bf56d95678 100644 (file)
@@ -1676,7 +1676,7 @@ void MenuDefinition::expandCaptions(Buffer const * buf, bool switchcap)
        for (pair<docstring, InsetLayout> const & il : dc.insetLayouts()) {
                docstring instype;
                docstring const type = split(il.first, instype, ':');
-               if (instype == "Caption") {
+               if (instype == from_ascii("Caption")) {
                        // skip forbidden caption types
                        FuncRequest const cmd = switchcap
                                ? FuncRequest(LFUN_INSET_MODIFY, from_ascii("changetype ") + type)