saveBufferToFile: make buffer constant

This commit is contained in:
rw-r-r-0644 2020-11-30 22:26:23 +01:00 committed by Maschell
parent a7ab305e39
commit 7b0e71a4ae
2 changed files with 3 additions and 3 deletions

View File

@ -162,7 +162,7 @@ bool FSUtils::copyFile(const std::string &in, const std::string &out) {
return true;
}
int32_t FSUtils::saveBufferToFile(const char *path, void *buffer, uint32_t size) {
int32_t FSUtils::saveBufferToFile(const char *path, const void *buffer, uint32_t size) {
CFile file(path, CFile::WriteOnly);
if (!file.isOpen()) {
return -1;

View File

@ -13,5 +13,5 @@ public:
static bool copyFile(const std::string &in, const std::string &out);
static int32_t saveBufferToFile(const char *path, void *buffer, uint32_t size);
};
static int32_t saveBufferToFile(const char *path, const void *buffer, uint32_t size);
};