Explorar o código

kernel/server_port: Simplify emptiness check within ShouldWait()

Lioncash %!s(int64=7) %!d(string=hai) anos
pai
achega
474bc29208
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/core/hle/kernel/server_port.cpp

+ 1 - 1
src/core/hle/kernel/server_port.cpp

@@ -28,7 +28,7 @@ ResultVal<SharedPtr<ServerSession>> ServerPort::Accept() {
 
 bool ServerPort::ShouldWait(Thread* thread) const {
     // If there are no pending sessions, we wait until a new one is added.
-    return pending_sessions.size() == 0;
+    return pending_sessions.empty();
 }
 
 void ServerPort::Acquire(Thread* thread) {