From 135906e4b2c3f14f52eff8b89e8e203c11a63966 Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Mon, 27 Apr 2015 12:48:47 +0200 Subject: Remove parameter "hasBeenSet" logic It doesn't really make sense anymore given that settings might come from the GUI or configuration and not only the command line. --- tests/encperf.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/encperf.cxx b/tests/encperf.cxx index 9b632e78..d93c771f 100644 --- a/tests/encperf.cxx +++ b/tests/encperf.cxx @@ -427,12 +427,12 @@ int main(int argc, char **argv) usage(argv[0]); } - if (!format.hasBeenSet()) { + if (strcmp(format, "") == 0) { fprintf(stderr, "Pixel format not specified!\n\n"); usage(argv[0]); } - if (!width.hasBeenSet() || !height.hasBeenSet()) { + if (width == 0 || height == 0) { fprintf(stderr, "Frame buffer size not specified!\n\n"); usage(argv[0]); } -- cgit v1.2.3