scummvm/image/codecs
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
..
indeo
bmp_raw.cpp IMAGE: Fix BitmapRawDecoder constructor regression 2021-11-04 00:46:46 -05:00
bmp_raw.h IMAGE: Fix BitmapRawDecoder constructor regression 2021-11-04 00:46:46 -05:00
cdtoons.cpp COMMON: Increase Stream pos, seek, size from int32 to int64 2021-07-08 18:24:28 -07:00
cdtoons.h
cinepak_tables.h
cinepak.cpp
cinepak.h
codec.cpp JANITORIAL: Replace new[]/memset with new[]() 2021-11-10 19:53:15 +01:00
codec.h
hlz.cpp
hlz.h
indeo3.cpp JANITORIAL: Replace new[]/memset with new[]() 2021-11-10 19:53:15 +01:00
indeo3.h
indeo4.cpp
indeo4.h
indeo5.cpp
indeo5.h
jyv1.cpp IMAGE: Make JYV1 decoder a little more robust to bad data 2021-07-25 15:40:03 +09:00
jyv1.h
mjpeg.cpp
mjpeg.h
mpeg.cpp
mpeg.h
msrle4.cpp
msrle4.h
msrle.cpp
msrle.h
msvideo1.cpp COMMON: Increase Stream pos, seek, size from int32 to int64 2021-07-08 18:24:28 -07:00
msvideo1.h
qtrle.cpp IMAGE: change the type of rleCode to int to prevent overflow. 2021-08-05 17:42:10 +08:00
qtrle.h
rpza.cpp
rpza.h
smc.cpp IMAGE: Fix SMC decoder 2021-08-10 20:51:42 +02:00
smc.h
svq1_cb.h
svq1_vlc.h
svq1.cpp
svq1.h
truemotion1.cpp
truemotion1.h
truemotion1data.h
xan.cpp JANITORIAL: Replace new[]/memset with new[]() 2021-11-10 19:53:15 +01:00
xan.h