]> git.lyx.org Git - features.git/commitdiff
Fix gcc 4.6 compilation.
authorPavel Sanda <sanda@lyx.org>
Sat, 12 Feb 2011 22:08:32 +0000 (22:08 +0000)
committerPavel Sanda <sanda@lyx.org>
Sat, 12 Feb 2011 22:08:32 +0000 (22:08 +0000)
If no initializer is specified for an object, and the object is of (possibly
cv-qualified) non-POD class type (or array thereof), the object shall be
default-initialized; if the object is of const-qualified type, the underlying
class type shall have a user-declared default constructor.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37603 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/InsetCommandParams.cpp

index d3dccdd4069f2e38487ce2c08699e2750a025f4d..bb4882874af1b0220dba13776023ab8e34f1250e 100644 (file)
@@ -84,7 +84,7 @@ static ParamInfo const & findInfo(InsetCode code, string const & cmdName)
        default:
                LASSERT(false, /**/);
        }
-       static const ParamInfo pi;
+       static ParamInfo pi;
        return pi; // to silence the warning
 }