本文整理汇总了C++中TWeakPtr::HasSameObject方法的典型用法代码示例。如果您正苦于以下问题:C++ TWeakPtr::HasSameObject方法的具体用法?C++ TWeakPtr::HasSameObject怎么用?C++ TWeakPtr::HasSameObject使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TWeakPtr
的用法示例。
在下文中一共展示了TWeakPtr::HasSameObject方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: NotifyProcessLog
void UFTextCrash::NotifyProcessLog(TWeakPtr<FUnitTestProcess> InProcess, const TArray<FString>& InLogLines)
{
Super::NotifyProcessLog(InProcess, InLogLines);
if (InProcess.HasSameObject(ServerHandle.Pin().Get()))
{
const TCHAR* AssertLog = TEXT("Unhandled Exception: EXCEPTION_ACCESS_VIOLATION reading address");
for (auto CurLine : InLogLines)
{
if (CurLine.Contains(AssertLog))
{
VerificationState = EUnitTestVerification::VerifiedNotFixed;
break;
}
else if (CurLine.Contains(ExploitFailLog))
{
VerificationState = EUnitTestVerification::VerifiedFixed;
break;
}
}
}
}
示例2: if
void UUTT61_DebugReplicateData::NotifyProcessLog(TWeakPtr<FUnitTestProcess> InProcess, const TArray<FString>& InLogLines)
{
Super::NotifyProcessLog(InProcess, InLogLines);
if (InProcess.HasSameObject(ServerHandle.Pin().Get()))
{
const TCHAR* AssertLog = TEXT("appError called: Assertion failed: (Index >= 0) & (Index < ArrayNum)");
for (auto CurLine : InLogLines)
{
if (CurLine.Contains(AssertLog))
{
VerificationState = EUnitTestVerification::VerifiedNotFixed;
break;
}
else if (CurLine.Contains(ExploitFailLog))
{
VerificationState = EUnitTestVerification::VerifiedFixed;
break;
}
}
}
}