summaryrefslogtreecommitdiff
path: root/src/utils/virtfsrwops.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/virtfsrwops.h')
-rw-r--r--src/utils/virtfsrwops.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/utils/virtfsrwops.h b/src/utils/virtfsrwops.h
index 5a8871377..82bb740de 100644
--- a/src/utils/virtfsrwops.h
+++ b/src/utils/virtfsrwops.h
@@ -47,6 +47,7 @@
#include "localconsts.h"
+#include <string>
#include <SDL_rwops.h>
struct VirtFile;
@@ -54,16 +55,17 @@ struct VirtFile;
namespace VirtFs
{
#ifdef DEBUG_VIRTFS
- SDL_RWops *RWopsOpenRead(const char *const fname,
+ SDL_RWops *RWopsOpenRead(const std::string &restrict fname,
const char *restrict const file,
const unsigned line);
void reportLeaks();
#else // DEBUG_VIRTFS
- SDL_RWops *RWopsOpenRead(const char *const fname);
+ SDL_RWops *RWopsOpenRead(const std::string &restrict fname);
#endif // DEBUG_VIRTFS
- SDL_RWops *RWopsOpenWrite(const char *const fname) A_WARN_UNUSED;
- SDL_RWops *RWopsOpenAppend(const char *const fname) A_WARN_UNUSED;
+ SDL_RWops *RWopsOpenWrite(const std::string &restrict fname) A_WARN_UNUSED;
+ SDL_RWops *RWopsOpenAppend(const std::string &restrict fname)
+ A_WARN_UNUSED;
SDL_RWops *MakeRWops(VirtFile *const handle) A_WARN_UNUSED;
#ifdef DUMP_LEAKED_RESOURCES
void reportRWops();