diff options
author | Pierre Ossman <ossman@cendio.se> | 2015-04-27 12:48:47 +0200 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2015-04-27 12:48:47 +0200 |
commit | 135906e4b2c3f14f52eff8b89e8e203c11a63966 (patch) | |
tree | 7bf81b1257158eaa751df3a19347ead0d834044b /tests | |
parent | 056c153209fea793ce00986cf102a5b587e28369 (diff) | |
download | tigervnc-135906e4b2c3f14f52eff8b89e8e203c11a63966.tar.gz tigervnc-135906e4b2c3f14f52eff8b89e8e203c11a63966.zip |
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.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/encperf.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
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]); } |