mirror of https://github.com/ARMmbed/mbed-os.git
NFC: Add const qualifier to append_as_record function of ndef common types.
parent
cffc0221cc
commit
9a3b64bd55
|
|
@ -110,7 +110,7 @@ public:
|
|||
bool append_as_record(
|
||||
MessageBuilder &message_builder,
|
||||
bool is_last_record = false
|
||||
);
|
||||
) const;
|
||||
|
||||
/**
|
||||
* Compute the size of this Mime object in a ndef record.
|
||||
|
|
|
|||
|
|
@ -126,7 +126,7 @@ public:
|
|||
bool append_as_record(
|
||||
MessageBuilder &message_builder,
|
||||
bool is_last_record = false
|
||||
);
|
||||
) const;
|
||||
|
||||
/**
|
||||
* Compute the size of this object in a ndef record.
|
||||
|
|
|
|||
|
|
@ -148,7 +148,7 @@ public:
|
|||
bool append_as_record(
|
||||
MessageBuilder &message_builder,
|
||||
bool is_last_record = false
|
||||
);
|
||||
) const;
|
||||
|
||||
/**
|
||||
* Compute the size of this object in a ndef record.
|
||||
|
|
|
|||
|
|
@ -96,7 +96,7 @@ Span<const uint8_t> Mime::get_mime_content() const
|
|||
bool Mime::append_as_record(
|
||||
MessageBuilder &message_builder,
|
||||
bool is_last_record
|
||||
)
|
||||
) const
|
||||
{
|
||||
return message_builder.append_record(
|
||||
RecordType(
|
||||
|
|
|
|||
|
|
@ -136,7 +136,7 @@ void Text::move_data(uint8_t *text, size_t size)
|
|||
bool Text::append_as_record(
|
||||
MessageBuilder &message_builder,
|
||||
bool is_last_record
|
||||
)
|
||||
) const
|
||||
{
|
||||
// Build the record type
|
||||
RecordType type(
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Reference in New Issue