NFC: Add const qualifier to append_as_record function of ndef common types.

pull/7822/head
Vincent Coubard 2018-08-28 17:45:05 +01:00
parent cffc0221cc
commit 9a3b64bd55
6 changed files with 6 additions and 6 deletions

View File

@ -110,7 +110,7 @@ public:
bool append_as_record( bool append_as_record(
MessageBuilder &message_builder, MessageBuilder &message_builder,
bool is_last_record = false bool is_last_record = false
); ) const;
/** /**
* Compute the size of this Mime object in a ndef record. * Compute the size of this Mime object in a ndef record.

View File

@ -126,7 +126,7 @@ public:
bool append_as_record( bool append_as_record(
MessageBuilder &message_builder, MessageBuilder &message_builder,
bool is_last_record = false bool is_last_record = false
); ) const;
/** /**
* Compute the size of this object in a ndef record. * Compute the size of this object in a ndef record.

View File

@ -148,7 +148,7 @@ public:
bool append_as_record( bool append_as_record(
MessageBuilder &message_builder, MessageBuilder &message_builder,
bool is_last_record = false bool is_last_record = false
); ) const;
/** /**
* Compute the size of this object in a ndef record. * Compute the size of this object in a ndef record.

View File

@ -96,7 +96,7 @@ Span<const uint8_t> Mime::get_mime_content() const
bool Mime::append_as_record( bool Mime::append_as_record(
MessageBuilder &message_builder, MessageBuilder &message_builder,
bool is_last_record bool is_last_record
) ) const
{ {
return message_builder.append_record( return message_builder.append_record(
RecordType( RecordType(

View File

@ -136,7 +136,7 @@ void Text::move_data(uint8_t *text, size_t size)
bool Text::append_as_record( bool Text::append_as_record(
MessageBuilder &message_builder, MessageBuilder &message_builder,
bool is_last_record bool is_last_record
) ) const
{ {
// Build the record type // Build the record type
RecordType type( RecordType type(

View File

@ -111,7 +111,7 @@ Span<const uint8_t> URI::get_uri_field() const
); );
} }
bool URI::append_as_record(MessageBuilder &message_builder, bool is_last_record) bool URI::append_as_record(MessageBuilder &message_builder, bool is_last_record) const
{ {
if (!_uri) { if (!_uri) {
return false; return false;