diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-03-29 18:31:00 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-03-29 18:31:00 +0300 |
commit | 7132f71cf010e4f13eb27c1a24d8878aa984b43f (patch) | |
tree | 330ad08a5ae15d0f4dc2d13461de1d5a47a69fe6 /src/fs/virtfs/virtfs.h | |
parent | d9c0d1c3b2800b0c995393426b65a031203ca2f0 (diff) | |
download | plus-7132f71cf010e4f13eb27c1a24d8878aa984b43f.tar.gz plus-7132f71cf010e4f13eb27c1a24d8878aa984b43f.tar.bz2 plus-7132f71cf010e4f13eb27c1a24d8878aa984b43f.tar.xz plus-7132f71cf010e4f13eb27c1a24d8878aa984b43f.zip |
Remove extra memory copy in VirtFs::loadFile.
Also add const into VirtFs::loadFile.
Diffstat (limited to 'src/fs/virtfs/virtfs.h')
-rw-r--r-- | src/fs/virtfs/virtfs.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fs/virtfs/virtfs.h b/src/fs/virtfs/virtfs.h index e09d6c6ac..ca74206e8 100644 --- a/src/fs/virtfs/virtfs.h +++ b/src/fs/virtfs/virtfs.h @@ -93,8 +93,8 @@ namespace VirtFs bool mountDirSilent2(std::string newDir, const Append append); #endif // UNITTESTS - char *loadFile(std::string filename, - int &restrict fileSize); + const char *loadFile(std::string filename, + int &restrict fileSize); } // namespace VirtFs extern const char *dirSeparator; |