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
cel_3do.cpp
cel_3do.h
gif.cpp
gif.h
iff.cpp
iff.h
image_decoder.h
jpeg.cpp
jpeg.h
module.mk
pcx.cpp
pcx.h
pict.cpp JANITORIAL: Replace new[]/memset with new[]() 2021-11-10 19:53:15 +01:00
pict.h
png.cpp
png.h
tga.cpp
tga.h