[Scummvm-git-logs] scummvm master -> b8c4cd8129e81ca7774b0db7b99eb946003b9af5

digitall 547637+digitall at users.noreply.github.com
Mon Mar 15 23:04:04 UTC 2021


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:
b8c4cd8129 COMMON: Use Correct Symbol in New String Function


Commit: b8c4cd8129e81ca7774b0db7b99eb946003b9af5
    https://github.com/scummvm/scummvm/commit/b8c4cd8129e81ca7774b0db7b99eb946003b9af5
Author: D G Turner (digitall at scummvm.org)
Date: 2021-03-15T23:01:24Z

Commit Message:
COMMON: Use Correct Symbol in New String Function

Changed paths:
    common/str.cpp


diff --git a/common/str.cpp b/common/str.cpp
index 98bdac2a14..fbd9a03744 100644
--- a/common/str.cpp
+++ b/common/str.cpp
@@ -416,7 +416,7 @@ String String::forEachLine(String(*func)(const String, va_list args), ...) const
 	size_t prev_index = 0;
 	va_list args;
 	va_start(args, func);
-	while (index != -1) {
+	while (index != npos) {
 		String textLine = substr(prev_index, index - prev_index);
 		textLine = (*func)(textLine, args);
 		result = result + textLine + '\n';




More information about the Scummvm-git-logs mailing list