diff options
author | Johannes Schickel | 2016-01-07 10:57:46 +0100 |
---|---|---|
committer | Johannes Schickel | 2016-01-07 10:57:46 +0100 |
commit | 48df726c9e2eb2a7efa87d8893d2a507be35c3cc (patch) | |
tree | 89a314ecd89da7da9e17b64cdd7286accd6075f0 | |
parent | 557d58af8d2c6cbb18c3506245edd06c641b5027 (diff) | |
download | scummvm-rg350-48df726c9e2eb2a7efa87d8893d2a507be35c3cc.tar.gz scummvm-rg350-48df726c9e2eb2a7efa87d8893d2a507be35c3cc.tar.bz2 scummvm-rg350-48df726c9e2eb2a7efa87d8893d2a507be35c3cc.zip |
BACKENDS: Let ChRootFilesystemFactory's constructor take a const String reference.
-rw-r--r-- | backends/fs/chroot/chroot-fs-factory.cpp | 4 | ||||
-rw-r--r-- | backends/fs/chroot/chroot-fs-factory.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/backends/fs/chroot/chroot-fs-factory.cpp b/backends/fs/chroot/chroot-fs-factory.cpp index fd1718a082..db5655ffce 100644 --- a/backends/fs/chroot/chroot-fs-factory.cpp +++ b/backends/fs/chroot/chroot-fs-factory.cpp @@ -30,8 +30,8 @@ #include "backends/fs/chroot/chroot-fs-factory.h" #include "backends/fs/chroot/chroot-fs.h" -ChRootFilesystemFactory::ChRootFilesystemFactory(Common::String root) { - _root = root; +ChRootFilesystemFactory::ChRootFilesystemFactory(const Common::String &root) + : _root(root) { } AbstractFSNode *ChRootFilesystemFactory::makeRootFileNode() const { diff --git a/backends/fs/chroot/chroot-fs-factory.h b/backends/fs/chroot/chroot-fs-factory.h index d3c997be6f..1a26410048 100644 --- a/backends/fs/chroot/chroot-fs-factory.h +++ b/backends/fs/chroot/chroot-fs-factory.h @@ -33,14 +33,14 @@ */ class ChRootFilesystemFactory : public FilesystemFactory { public: - ChRootFilesystemFactory(Common::String root); + ChRootFilesystemFactory(const Common::String &root); virtual AbstractFSNode *makeRootFileNode() const; virtual AbstractFSNode *makeCurrentDirectoryFileNode() const; virtual AbstractFSNode *makeFileNodePath(const Common::String &path) const; private: - Common::String _root; + const Common::String _root; }; #endif /* BACKENDS_FS_CHROOT_CHROOT_FS_FACTORY_H */ |