diff --git a/src/projects/modules/data_format/amf_event/amf_textdata_event.cpp b/src/projects/modules/data_format/amf_event/amf_textdata_event.cpp index 4133e732b..4820dc2b3 100644 --- a/src/projects/modules/data_format/amf_event/amf_textdata_event.cpp +++ b/src/projects/modules/data_format/amf_event/amf_textdata_event.cpp @@ -76,17 +76,17 @@ AmfTextDataEvent::AmfTextDataEvent() _arrays = std::make_shared(); } -bool AmfTextDataEvent::Append(const char *name, const bool &value) +bool AmfTextDataEvent::Append(const char *name, const bool value) { return _arrays->Append(name, AmfProperty(value)); } -bool AmfTextDataEvent::Append(const char *name, const double &value) +bool AmfTextDataEvent::Append(const char *name, const double value) { return _arrays->Append(name, AmfProperty(value)); } -bool AmfTextDataEvent::Append(const char *name, const ov::String &value) +bool AmfTextDataEvent::Append(const char *name, const char *value) { return _arrays->Append(name, AmfProperty(value)); } diff --git a/src/projects/modules/data_format/amf_event/amf_textdata_event.h b/src/projects/modules/data_format/amf_event/amf_textdata_event.h index 0d7b9263a..d1cedbf96 100644 --- a/src/projects/modules/data_format/amf_event/amf_textdata_event.h +++ b/src/projects/modules/data_format/amf_event/amf_textdata_event.h @@ -42,9 +42,9 @@ class AmfTextDataEvent std::shared_ptr Serialize() const; - bool Append(const char *name, const bool &value); - bool Append(const char *name, const double &value); - bool Append(const char *name, const ov::String &value); + bool Append(const char *name, const bool value); + bool Append(const char *name, const double value); + bool Append(const char *name, const char *value); private: std::shared_ptr _arrays = nullptr;