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

grisenti noreply at scummvm.org
Fri Dec 15 07:13:06 UTC 2023


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:
e778683406 HPL1: Remove unnecessary string copy


Commit: e778683406d62d6af8a786b3d0576cf38d49540d
    https://github.com/scummvm/scummvm/commit/e778683406d62d6af8a786b3d0576cf38d49540d
Author: grisenti (emanuele at grisenti.net)
Date: 2023-12-15T08:12:57+01:00

Commit Message:
HPL1: Remove unnecessary string copy

Changed paths:
    engines/hpl1/engine/resources/ConfigFile.cpp
    engines/hpl1/engine/resources/ConfigFile.h


diff --git a/engines/hpl1/engine/resources/ConfigFile.cpp b/engines/hpl1/engine/resources/ConfigFile.cpp
index 242c1c0d6fb..b5d0bfc1291 100644
--- a/engines/hpl1/engine/resources/ConfigFile.cpp
+++ b/engines/hpl1/engine/resources/ConfigFile.cpp
@@ -41,7 +41,7 @@ namespace hpl {
 
 //-----------------------------------------------------------------------
 
-cConfigFile::cConfigFile(tWString asFile) {
+cConfigFile::cConfigFile(const tWString &asFile) {
 	msFile = asFile;
 	mpXmlDoc = hplNew(TiXmlDocument, ());
 	// mpFileSearcher = apFileSearcher;
diff --git a/engines/hpl1/engine/resources/ConfigFile.h b/engines/hpl1/engine/resources/ConfigFile.h
index 58f6590a49c..7e6f4f2247a 100644
--- a/engines/hpl1/engine/resources/ConfigFile.h
+++ b/engines/hpl1/engine/resources/ConfigFile.h
@@ -37,7 +37,7 @@ namespace hpl {
 
 class cConfigFile {
 public:
-	cConfigFile(tWString asFile);
+	cConfigFile(const tWString &asFile);
 	~cConfigFile();
 
 	/**




More information about the Scummvm-git-logs mailing list