]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetListingsParams.cpp
Add Nomenclature to the TOC.
[lyx.git] / src / insets / InsetListingsParams.cpp
index db10eb7d8ae5bfee92f8d203f9aa23f7f456a8a4..fa488c07d82f60af68a702e285e4003f534d0702 100644 (file)
@@ -36,7 +36,7 @@ enum param_type {
        INTEGER, // accept an integer
        LENGTH,  // accept a latex length
        ONEOF,  // accept one of a few values
-       SUBSETOF, // accept a string composed of given characters
+       SUBSETOF // accept a string composed of given characters
 };
 
 
@@ -757,7 +757,7 @@ void InsetListingsParams::addParam(string const & key,
        // check onoff flag
        // onoff parameter with value false
        if (!par_validator)
-               par_validator = new ParValidator();
+               par_validator = new ParValidator;
        if (par_validator->onoff(key) && (value == "false" || value == "{false}"))
                params_[keyname] = string();
        // if the parameter is surrounded with {}, good
@@ -884,7 +884,7 @@ docstring InsetListingsParams::validate() const
 {
        docstring msg;
        if (!par_validator)
-               par_validator = new ParValidator();
+               par_validator = new ParValidator;
        for (map<string, string>::const_iterator it = params_.begin();
                it != params_.end(); ++it) {
                msg = par_validator->validate(it->first, it->second);