@@ -382,38 +382,38 @@ namespace osmium {
382382
383383 void add_comment (osmium::Timestamp date, osmium::user_id_type uid, const char * user) {
384384 assert (!has_open_comment () && " You have to always call both add_comment() and then add_comment_text() in that order for each comment!" );
385-
385+
386386 // Store offset instead of pointer to handle buffer reallocation
387387 m_comment_offset = buffer ().written () - buffer ().committed ();
388-
388+
389389 auto * comment = reserve_space_for<osmium::ChangesetComment>();
390390 new (comment) osmium::ChangesetComment{date, uid};
391391 add_size (sizeof (ChangesetComment));
392-
392+
393393 add_user (*comment, user, std::strlen (user));
394394 }
395395
396396 void add_comment_text (const char * text) {
397397 assert (has_open_comment () && " You have to always call both add_comment() and then add_comment_text() in that order for each comment!" );
398-
398+
399399 // Get fresh pointer each time to handle buffer reallocation
400400 auto * comment = get_comment_ptr ();
401-
401+
402402 // Invalidate offset to ensure right adding order
403403 m_comment_offset = std::numeric_limits<std::size_t >::max ();
404-
404+
405405 add_text (*comment, text, std::strlen (text));
406406 }
407407
408408 void add_comment_text (const std::string& text) {
409409 assert (has_open_comment () && " You have to always call both add_comment() and then add_comment_text() in that order for each comment!" );
410-
410+
411411 // Get fresh pointer each time to handle buffer reallocation
412412 auto * comment = get_comment_ptr ();
413-
413+
414414 // Invalidate offset to ensure right adding order
415415 m_comment_offset = std::numeric_limits<std::size_t >::max ();
416-
416+
417417 add_text (*comment, text.c_str (), text.size ());
418418 }
419419 }; // class ChangesetDiscussionBuilder
0 commit comments