diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-02-14 20:34:06 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-02-14 20:59:26 +0300 |
commit | bdec92381ef60cd027292ed63e254e8de70028d9 (patch) | |
tree | ebf2722cdc9fe7383a709ba1584432a491cf10ba /src/utils/virtfsrwops.h | |
parent | 5283a59db971ec2038149bf26ad9b3cbc4924449 (diff) | |
download | plus-bdec92381ef60cd027292ed63e254e8de70028d9.tar.gz plus-bdec92381ef60cd027292ed63e254e8de70028d9.tar.bz2 plus-bdec92381ef60cd027292ed63e254e8de70028d9.tar.xz plus-bdec92381ef60cd027292ed63e254e8de70028d9.zip |
In virtfs replace parameters type from char* to std::string.
Diffstat (limited to 'src/utils/virtfsrwops.h')
-rw-r--r-- | src/utils/virtfsrwops.h | 10 |
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(); |