[Scummvm-cvs-logs] scummvm-tools master -> 60b856b31364a8c8176b533cbedbd1d4cbd03bb5

clone2727 clone2727 at gmail.com
Tue Feb 4 04:53:27 CET 2014


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

Summary:
60b856b313 TOOLS: Fix compilation with C++98


Commit: 60b856b31364a8c8176b533cbedbd1d4cbd03bb5
    https://github.com/scummvm/scummvm-tools/commit/60b856b31364a8c8176b533cbedbd1d4cbd03bb5
Author: Matthew Hoops (clone2727 at gmail.com)
Date: 2014-02-03T19:52:35-08:00

Commit Message:
TOOLS: Fix compilation with C++98

Changed paths:
    engines/sword1/compress_sword1.cpp



diff --git a/engines/sword1/compress_sword1.cpp b/engines/sword1/compress_sword1.cpp
index 71c787b..6e2072a 100644
--- a/engines/sword1/compress_sword1.cpp
+++ b/engines/sword1/compress_sword1.cpp
@@ -748,7 +748,7 @@ void CompressSword1::execute() {
 	// If the input path is in one of the usual sub-directory, take the parent directory.
 	std::string path = inpath.getPath();
 	if (!path.empty()) {
-		path.pop_back(); // remove slash at the end.
+		path.erase(path.size() - 1); // remove slash at the end.
 		size_t slash = path.rfind('/');
 		if (slash == std::string::npos)
 			slash = path.rfind('\\');






More information about the Scummvm-git-logs mailing list