[Scummvm-git-logs] scummvm master -> 30d6e9452c045a80b1a4ca6ecd6a5451575d142e

bluegr noreply at scummvm.org
Fri Dec 20 12:03:39 UTC 2024


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
30d6e9452c Common: Simplify check and fix formatting


Commit: 30d6e9452c045a80b1a4ca6ecd6a5451575d142e
    https://github.com/scummvm/scummvm/commit/30d6e9452c045a80b1a4ca6ecd6a5451575d142e
Author: Filippos Karapetis (bluegr at gmail.com)
Date: 2024-12-20T14:03:20+02:00

Commit Message:
Common: Simplify check and fix formatting

Changed paths:
    common/stream.cpp


diff --git a/common/stream.cpp b/common/stream.cpp
index 59aa36dbee6..5043193b489 100644
--- a/common/stream.cpp
+++ b/common/stream.cpp
@@ -111,7 +111,7 @@ Common::String ReadStream::readPascalString(bool transformCR) {
 }
 
 uint32 MemoryReadStream::read(void *dataPtr, uint32 dataSize) {
-	if(dataPtr == nullptr)
+	if (!dataPtr)
 		return 0;
 
 	// Read at most as many bytes as are still available...




More information about the Scummvm-git-logs mailing list