@@ -799,8 +799,8 @@ class EnableCommand : public CommandObjectParsed {
799
799
}
800
800
801
801
// Get the plugin for the process.
802
- auto plugin_sp = process_sp-> GetStructuredDataPlugin (
803
- ConstString (GetDarwinLogTypeName () ));
802
+ auto plugin_sp =
803
+ process_sp-> GetStructuredDataPlugin (GetDarwinLogTypeName ());
804
804
if (!plugin_sp || (plugin_sp->GetPluginName () !=
805
805
StructuredDataDarwinLog::GetStaticPluginName ())) {
806
806
result.AppendError (" failed to get StructuredDataPlugin for "
@@ -871,8 +871,8 @@ class StatusCommand : public CommandObjectParsed {
871
871
stream.PutCString (" Enabled: not applicable "
872
872
" (requires process)\n " );
873
873
} else {
874
- auto plugin_sp = process_sp-> GetStructuredDataPlugin (
875
- ConstString (GetDarwinLogTypeName () ));
874
+ auto plugin_sp =
875
+ process_sp-> GetStructuredDataPlugin (GetDarwinLogTypeName ());
876
876
stream.Printf (" Availability: %s\n " ,
877
877
plugin_sp ? " available" : " unavailable" );
878
878
llvm::StringRef plugin_name = StructuredDataDarwinLog::GetStaticPluginName ();
@@ -1490,8 +1490,7 @@ bool StructuredDataDarwinLog::InitCompletionHookCallback(
1490
1490
LLDB_LOGF (log, " StructuredDataDarwinLog::%s() call is for process uid %d" ,
1491
1491
__FUNCTION__, process_sp->GetUniqueID ());
1492
1492
1493
- auto plugin_sp =
1494
- process_sp->GetStructuredDataPlugin (ConstString (GetDarwinLogTypeName ()));
1493
+ auto plugin_sp = process_sp->GetStructuredDataPlugin (GetDarwinLogTypeName ());
1495
1494
if (!plugin_sp) {
1496
1495
LLDB_LOG (log, " warning: no plugin for feature {0} in process uid {1}" ,
1497
1496
GetDarwinLogTypeName (), process_sp->GetUniqueID ());
0 commit comments