diff options
author | Wohlstand <admin@wohlnet.ru> | 2017-11-20 04:06:31 +0300 |
---|---|---|
committer | Wohlstand <admin@wohlnet.ru> | 2017-11-20 04:06:31 +0300 |
commit | 93078915431d1fcd8ece793201cbeda0d32d8722 (patch) | |
tree | 158d42c54eda421a849e05847543427f069fb616 /src/adlmidi_load.cpp | |
parent | 549bcaa5dcd460a6aa5143776eeea6c4bde1cf5f (diff) | |
download | libADLMIDI-93078915431d1fcd8ece793201cbeda0d32d8722.tar.gz libADLMIDI-93078915431d1fcd8ece793201cbeda0d32d8722.tar.bz2 libADLMIDI-93078915431d1fcd8ece793201cbeda0d32d8722.zip |
Use const char* and const void* as input data types
Diffstat (limited to 'src/adlmidi_load.cpp')
-rw-r--r-- | src/adlmidi_load.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/adlmidi_load.cpp b/src/adlmidi_load.cpp index 60c4151..1d4a193 100644 --- a/src/adlmidi_load.cpp +++ b/src/adlmidi_load.cpp @@ -55,10 +55,10 @@ bool MIDIplay::LoadBank(const std::string &filename) return LoadBank(file); } -bool MIDIplay::LoadBank(void *data, unsigned long size) +bool MIDIplay::LoadBank(const void *data, size_t size) { fileReader file; - file.openData(data, (size_t)size); + file.openData(data, size); return LoadBank(file); } @@ -346,10 +346,10 @@ bool MIDIplay::LoadMIDI(const std::string &filename) return true; } -bool MIDIplay::LoadMIDI(void *data, unsigned long size) +bool MIDIplay::LoadMIDI(const void *data, size_t size) { fileReader file; - file.openData(data, (size_t)size); + file.openData(data, size); return LoadMIDI(file); } |