mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-26 20:59:00 +00:00
BACKENDS: Let ChRootFilesystemFactory's constructor take a const String reference.
This commit is contained in:
parent
557d58af8d
commit
48df726c9e
@ -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 {
|
||||
|
@ -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 */
|
||||
|
Loading…
x
Reference in New Issue
Block a user