scummvm/image
Orgad Shaneh 7a4e5612de JANITORIAL: Replace new[]/memset with new[]()
Mostly done using the following Ruby script:

(Dir.glob('**/*.cpp') + Dir.glob('**/*.h')).each do |file|
  s = File.read(file, encoding: 'iso8859-1')
  t = s.gsub(/(([\w_.\[\]]+)\s*=\s*new\s+\S+?\[[^\]]+?\](?!\())([^\{\}]*?)\n\s+memset\(\s*\2\s*,\s*0\s*,[^;]*;/m, '\1()\3')
  if t != s
    File.open(file, 'w') { |io| io.write(t) }
  end
end
2021-11-10 19:53:15 +01:00
..
codecs JANITORIAL: Replace new[]/memset with new[]() 2021-11-10 19:53:15 +01:00
bmp.cpp IMAGE: Load BMPs with any v1-v5 header 2021-11-01 16:26:23 +02:00
bmp.h IMAGE: Mention usage of bmp decoder by ultima8 engine 2021-06-24 08:44:08 +09:00
cel_3do.cpp IMAGE: Add decoder for CEL 3DO format 2020-10-24 00:59:01 +02:00
cel_3do.h DOXYGEN: Doxy work on files from 'image' 2020-11-29 23:04:01 +00:00
gif.cpp IMAGE: added GIFDecoder using libgif 2021-04-10 10:59:09 +02:00
gif.h IMAGE: added GIFDecoder using libgif 2021-04-10 10:59:09 +02:00
iff.cpp KINGDOM: Add some functions and constants (courtesy of TMM), fix the IFFDecoder for chunks with odd size 2020-06-07 00:02:29 +02:00
iff.h JANITORIAL: Remove trailing whitespaces 2021-05-04 11:46:30 +03:00
image_decoder.h DOXYGEN: Doxy work on files from 'image' 2020-11-29 23:04:01 +00:00
jpeg.cpp GRAPHICS: Changed surface classes sizes from uint16 to int16 2021-07-04 18:24:27 -07:00
jpeg.h DOXYGEN: Doxy work on files from 'image' 2020-11-29 23:04:01 +00:00
module.mk CRYOMNI3D: Move HNMDecoder into common code 2021-04-17 21:48:45 +03:00
pcx.cpp
pcx.h DOXYGEN: Doxy work on files from 'image' 2020-11-29 23:04:01 +00:00
pict.cpp JANITORIAL: Replace new[]/memset with new[]() 2021-11-10 19:53:15 +01:00
pict.h DOXYGEN: Doxy work on files from 'image' 2020-11-29 23:04:01 +00:00
png.cpp GRAPHICS: Changed surface classes sizes from uint16 to int16 2021-07-04 18:24:27 -07:00
png.h IMAGE: Use 0-bit alpha for non-transparent PNGs 2021-07-05 01:00:11 +02:00
tga.cpp IMAGE: Properly load bottom origin RLE encoded TGA images 2017-01-01 02:36:01 -05:00
tga.h DOXYGEN: Doxy work on files from 'image' 2020-11-29 23:04:01 +00:00