History

tests: use vpx_codec_dec_cfg_t() to initialize vars

0-initializes [1] and removes a warning for missing initializer fields [1] http://en.cppreference.com/w/cpp/language/value_initialization

James Zern committed 12 years ago

Commit b4b191a1 parent 812506b11 files · +11 −11Browse files

Showing the changes to test/invalid_file_test.cc (1 of 11 files). Show all

Unified · Split

test/invalid_file_test.cc+1−1
@@ -73,7 +73,7 @@ class InvalidFileTest · 72 unmodified lines
7373 void RunTest() {
7474 const DecodeParam input = GET_PARAM(1);
7575 libvpx_test::CompressedVideoSource *video = NULL;
76− vpx_codec_dec_cfg_t cfg = {0};
76+ vpx_codec_dec_cfg_t cfg = vpx_codec_dec_cfg_t();
7777 cfg.threads = input.threads;
7878 const std::string filename = input.filename;
7979

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t