Skip to content

Commit

Permalink
Fixed string type conversion not working when creating AMF messages
Browse files Browse the repository at this point in the history
  • Loading branch information
Keukhan committed Jan 2, 2025
1 parent 364360d commit fc6ea6f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,17 +76,17 @@ AmfTextDataEvent::AmfTextDataEvent()
_arrays = std::make_shared<AmfEcmaArray>();
}

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));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ class AmfTextDataEvent

std::shared_ptr<ov::Data> 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<AmfEcmaArray> _arrays = nullptr;
Expand Down

0 comments on commit fc6ea6f

Please sign in to comment.