Skip to content

Commit 8db77b5

Browse files
bill997scientistnetiche033
authored andcommitted
Fix compatibility with protobuf v30 (cpp 6.30.0) (#677)
Signed-off-by: bill ross <4451962+bill997@users.noreply.github.com> Co-authored-by: bill ross <4451962+bill997@users.noreply.github.com> Co-authored-by: Ian Chen <ichen@openrobotics.org> (cherry picked from commit e1eb227)
1 parent 8350a2a commit 8db77b5

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/plugins/topic_viewer/TopicViewer.cc

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -256,12 +256,13 @@ void TopicViewerPrivate::AddField(QStandardItem *_parentItem,
256256
auto messageType = msgField->message_type();
257257

258258
if (messageType)
259-
this->AddField(msgItem, msgField->name(), messageType->full_name());
259+
this->AddField(msgItem, std::string(msgField->name()),
260+
std::string(messageType->full_name()));
260261

261262
else
262263
{
263-
auto msgFieldItem = this->FactoryItem(msgField->name(),
264-
msgField->type_name());
264+
auto msgFieldItem = this->FactoryItem(std::string(msgField->name()),
265+
std::string(msgField->type_name()));
265266
msgItem->appendRow(msgFieldItem);
266267

267268
this->SetItemPath(msgFieldItem);

0 commit comments

Comments
 (0)