mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-10-25 00:03:42 +00:00
Remove redundant/tautological comparisons identified by PVS Studio
This commit is contained in:
37 files changed
+381
-412
No files matched your search
@@ -417,7 +417,7 @@ void LiveCapture::deleteCapture_triggered()
|
||||
m_Ctx.Replay().DeleteCapture(cap->path, cap->local);
|
||||
}
|
||||
|
||||
if(cap->saved || cap->local)
|
||||
if(cap->local)
|
||||
{
|
||||
m_Main->RemoveRecentCapture(cap->path);
|
||||
}
|
||||
@@ -910,7 +910,7 @@ void LiveCapture::cleanItems()
|
||||
m_Ctx.Replay().DeleteCapture(cap->path, cap->local);
|
||||
}
|
||||
|
||||
if(cap->saved || cap->local)
|
||||
if(cap->local)
|
||||
{
|
||||
m_Main->RemoveRecentCapture(cap->path);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user