diff options
-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 */ |