diff options
author | 2016-01-29 00:43:18 +0100 | |
---|---|---|
committer | 2016-01-29 00:43:18 +0100 | |
commit | 361d32d37ffbe133760fcbfa314f60ccd4a8e8a8 (patch) | |
tree | 31813d7d743784862112bd647ee6da3b1361158b /src/emu/sound/wavwrite.cpp | |
parent | cb1d7fe7fc942677c6aae668e283073f08a11199 (diff) |
Small code cleanup:
- corealloc.h: added macro definition for global_alloc (nothrow) memory allocation.
- textbuf.cpp / wavwrite.cpp: removed pointless cast.
- debugcmd.cpp / luaengine.cpp / render.cpp: avoid strlen calls in a loop.
- diimage.cpp: simplified "device_image_interface::set_image_filename" function.
- miscmenu.cpp / selgame.h / video.cpp(h): replaced int with bool where applicable.
- ui.cpp: removed unused code.
Diffstat (limited to 'src/emu/sound/wavwrite.cpp')
-rw-r--r-- | src/emu/sound/wavwrite.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/emu/sound/wavwrite.cpp b/src/emu/sound/wavwrite.cpp index 210b1bcc9d5..b535e91a675 100644 --- a/src/emu/sound/wavwrite.cpp +++ b/src/emu/sound/wavwrite.cpp @@ -18,7 +18,7 @@ wav_file *wav_open(const char *filename, int sample_rate, int channels) UINT16 align, temp16; /* allocate memory for the wav struct */ - wav = (wav_file *) global_alloc(wav_file); + wav = global_alloc(wav_file); if (!wav) return nullptr; |