Lilypond_grob_key::Lilypond_grob_key (Object_key const *context,
Moment start,
- std::string name,
+ string name,
int disambiguation_count)
{
context_ = context;
{
return scm_list_4 (context_ ? context_->self_scm () : SCM_BOOL_F,
creation_moment_.smobbed_copy (),
- scm_makfrom0str (grob_name_.c_str ()),
+ ly_string2scm (grob_name_),
scm_from_int (disambiguation_count_));
}
Lilypond_context_key::Lilypond_context_key (Object_key const *parent,
Moment start,
- std::string type,
- std::string id,
+ string type,
+ string id,
int count)
{
disambiguation_count_ = count;
{
return scm_list_5 (parent_context_ ? parent_context_->self_scm () : SCM_BOOL_F,
start_moment_.smobbed_copy (),
- scm_makfrom0str (context_name_.c_str ()),
- scm_makfrom0str (id_.c_str ()),
+ ly_string2scm (context_name_),
+ ly_string2scm (id_),
scm_from_int (disambiguation_count_));
}
}
Lilypond_general_key::Lilypond_general_key (Object_key const *parent,
- std::string name,
+ string name,
int count)
{
parent_ = parent;
Lilypond_general_key::as_scheme () const
{
return scm_list_3 (parent_ ? parent_->self_scm () : SCM_BOOL_F,
- scm_makfrom0str (name_.c_str ()),
+ ly_string2scm (name_),
scm_from_int (disambiguation_count_));
}