]> git.lyx.org Git - features.git/blobdiff - src/insets/insetinfo.C
read the Changelog
[features.git] / src / insets / insetinfo.C
index 3a9fa245b15d8373a41f9b5c839086981084041d..1f4e68e7b4627756f56270a15a659ffdddfd7f72 100644 (file)
@@ -35,21 +35,18 @@ extern BufferView * current_view;
 
 
 InsetInfo::InsetInfo()
-{
-       form = 0;
-}
+       : form(0)
+{}
 
 
-InsetInfo::InsetInfo(string const & string)
-       : contents(string)
-{
-       form = 0;
-}
+InsetInfo::InsetInfo(string const & str)
+       : contents(str), form(0)
+{}
 
 
 InsetInfo::~InsetInfo()
 {
-       if (form){
+       if (form) {
                fl_hide_form(form);
                fl_free_form(form);
                form = 0;
@@ -182,7 +179,8 @@ void InsetInfo::CloseInfoCB(FL_OBJECT * ob, long)
 
 
 // This is just a wrapper.
-extern "C" void C_InsetInfo_CloseInfoCB(FL_OBJECT * ob, long data) 
+extern "C"
+void C_InsetInfo_CloseInfoCB(FL_OBJECT * ob, long data) 
 {
        InsetInfo::CloseInfoCB(ob, data);
 }