summaryrefslogtreecommitdiff
path: root/src/fs/virtfs/virtfs.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-03-29 18:31:00 +0300
committerAndrei Karas <akaras@inbox.ru>2017-03-29 18:31:00 +0300
commit7132f71cf010e4f13eb27c1a24d8878aa984b43f (patch)
tree330ad08a5ae15d0f4dc2d13461de1d5a47a69fe6 /src/fs/virtfs/virtfs.h
parentd9c0d1c3b2800b0c995393426b65a031203ca2f0 (diff)
downloadmanaplus-7132f71cf010e4f13eb27c1a24d8878aa984b43f.tar.gz
manaplus-7132f71cf010e4f13eb27c1a24d8878aa984b43f.tar.bz2
manaplus-7132f71cf010e4f13eb27c1a24d8878aa984b43f.tar.xz
manaplus-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.h4
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;