]> git.lyx.org Git - features.git/blobdiff - src/insets/insetbib.C
Added copy constructor to inset.h and used it in most insets which permit
[features.git] / src / insets / insetbib.C
index 28836d50530b86902787ddab6f01bb0e53b540ab..9f4caab3f9359a27173cbe23ca7ae776365bec85 100644 (file)
@@ -33,9 +33,8 @@ int InsetBibKey::key_counter = 0;
 const string key_prefix = "key-";
 
 InsetBibKey::InsetBibKey(InsetCommandParams const & p)
-       : InsetCommand(p)
+       : InsetCommand(p), counter(1)
 {
-       counter = 1;
        if (getContents().empty())
                setContents(key_prefix + tostr(++key_counter));
 }