Skip to content

Commit

Permalink
Removes object creation from passing itself in argument (#3100)
Browse files Browse the repository at this point in the history
  • Loading branch information
almedina-ms committed Jun 26, 2019
1 parent 7f0ba05 commit 4d0d9b7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion source/shared/cpp/ObjectModel/TextRun.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ void TextRun::PopulateKnownPropertiesSet()

Json::Value TextRun::SerializeToJsonValue() const
{
Json::Value root = m_textElementProperties->SerializeToJsonValue(root);
Json::Value root{};
root = m_textElementProperties->SerializeToJsonValue(root);
root[AdaptiveCardSchemaKeyToString(AdaptiveCardSchemaKey::Type)] = GetInlineTypeString();

if (m_highlight)
Expand Down

0 comments on commit 4d0d9b7

Please sign in to comment.