]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetFloatList.cpp
Andre's s/getTextClass/textClass/ cleanup.
[lyx.git] / src / insets / InsetFloatList.cpp
index 1ff09b1bf4976d76ef1797a6cc058fb7fb29de62..f3299d899f7892d7c7e1fa79c892818d0c8ad6b8 100644 (file)
@@ -48,12 +48,13 @@ InsetFloatList::InsetFloatList(string const & type)
 }
 
 
-CommandInfo const * InsetFloatList::findInfo(string const & /* cmdName */)
+ParamInfo const & InsetFloatList::findInfo(string const & /* cmdName */)
 {
-       static const char * const paramnames[] = {"type", ""};
-       static const bool isoptional[] = {false};
-       static const CommandInfo info = {1, paramnames, isoptional};
-       return &info;
+       static ParamInfo param_info_;
+       if (param_info_.empty()) {
+               param_info_.add("type", false);
+       }
+       return param_info_;
 }