]> git.lyx.org Git - lyx.git/blobdiff - src/Thesaurus.cpp
Do not error out if -geometry is used with QPA_XCB defined.
[lyx.git] / src / Thesaurus.cpp
index ace03d79e9b4014db7ec26c4938a4242f114365a..1c1adc03b0e22cb91154ac21e396957b05997bb3 100644 (file)
@@ -217,7 +217,7 @@ Thesaurus::Meanings Thesaurus::lookup(WordLangTuple const & wl)
        MyThes * mythes = nullptr;
 
        docstring const lang_code = from_ascii(wl.lang()->code());
-       docstring const t = wl.word();
+       docstring const t = wl.word();
 
        if (!d->addThesaurus(lang_code))
                return meanings;
@@ -266,6 +266,7 @@ Thesaurus::Meanings Thesaurus::lookup(WordLangTuple const & wl)
                // remove silly item
                if (support::prefixIs(meaning, '-'))
                        meaning = support::ltrim(meaning, "- ");
+               ret.reserve(pm->count);
                for (int j = 0; j < pm->count; j++) {
                        ret.push_back(from_iconv_encoding(string(pm->psyns[j]), encoding));
                }