]> git.lyx.org Git - features.git/blobdiff - src/insets/inset.C
simplificatons
[features.git] / src / insets / inset.C
index f473f151f448c9b1e213dd227af4901dc9c0ec2d..e9ac220de52aecd1ed36b3e08a06ed6bc9c928ba 100644 (file)
@@ -40,7 +40,7 @@ Inset::Inset()
 
 
 Inset::Inset(Inset const & in, bool same_id)
-       : top_x(0), top_baseline(0), scx(0), owner_(0), name(in.name),
+       : top_x(0), top_baseline(0), scx(0), owner_(0), name_(in.name_),
          background_color_(in.background_color_)
 {
        if (same_id)
@@ -311,12 +311,15 @@ int UpdatableInset::getMaxWidth(BufferView * bv, UpdatableInset const *) const
        return bv->workWidth();
 }
 
+
 LyXCursor const & Inset::cursor(BufferView * bv) const
 {
        return bv->text->cursor;
 }
 
-string UpdatableInset::selectNextWord(BufferView *bv, float & value) const
+
+string const UpdatableInset::selectNextWord(BufferView *bv,
+                                           float & value) const
 {
        // we have to unlock ourself in this function by default!
        bv->unlockInset(const_cast<UpdatableInset *>(this));
@@ -324,6 +327,7 @@ string UpdatableInset::selectNextWord(BufferView *bv, float & value) const
        return string();
 }
 
+
 bool UpdatableInset::searchForward(BufferView * bv, string const &,
                                    bool const &, bool const &)
 {
@@ -332,6 +336,7 @@ bool UpdatableInset::searchForward(BufferView * bv, string const &,
        return false;
 }
 
+
 bool UpdatableInset::searchBackward(BufferView * bv, string const &,
                                     bool const &, bool const &)
 {