diff --git a/libcorpus2_whole/io/relwriter.cpp b/libcorpus2_whole/io/relwriter.cpp index ca904a913ad1fe3110dda48bb88e64da92efb627..1796c28b35e200ccf8c9cec270da64c351687809 100755 --- a/libcorpus2_whole/io/relwriter.cpp +++ b/libcorpus2_whole/io/relwriter.cpp @@ -46,27 +46,24 @@ void RelationWriter::write(const std::vector< boost::shared_ptr<Relation> >& rel ofs<<" <rel name=\""; ofs<<r->name().c_str()<<"\">"<<endl; ofs<<" <from sent=\""; - ofs<<r->from()->sentence_id().c_str(); + ofs<<r->from()->sentence_id(); ofs<<"\" chan=\""; - ofs<<r->from()->channel_name().c_str(); + ofs<<r->from()->channel_name(); ofs<<"\">"; ofs<<r->from()->annotation_number(); ofs<<"</from>"<<endl; ofs<<" <to sent=\""; - ofs<<r->to()->sentence_id().c_str(); - ofs<<"\" chan=\""; - ofs<<r->to()->channel_name().c_str(); - ofs<<"\">"; - ofs<<r->to()->annotation_number(); - ofs<<"</to>"<<endl; + ofs<<r->to()->sentence_id(); + ofs<<"\" chan=\""; + ofs<<r->to()->channel_name(); + ofs<<"\">"; + ofs<<r->to()->annotation_number(); + ofs<<"</to>"<<endl; ofs<<" </rel>"<<endl; } - - - //footer ofs<<"</relations>"; - ofs.close(); + ofs.close(); }