Fix static analysis warnings (pointless move, empty instead of size)

This commit is contained in:
Henrik Rydgård
2025-08-30 11:18:23 +02:00
parent cee9494476
commit 00a13bfb14
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -140,7 +140,7 @@ bool GLRenderManager::ThreadFrame() {
while (renderThreadQueue_.empty()) {
pushCondVar_.wait(lock);
}
task = std::move(renderThreadQueue_.front());
task = renderThreadQueue_.front();
renderThreadQueue_.pop();
}
+1 -1
View File
@@ -939,7 +939,7 @@ extern "C" void Java_org_ppsspp_ppsspp_NativeApp_shutdown(JNIEnv *, jclass) {
{
std::lock_guard<std::mutex> guard(frameCommandLock);
while (frameCommands.size())
while (!frameCommands.empty())
frameCommands.pop();
}
INFO_LOG(Log::System, "NativeApp.shutdown() -- end");