mirror of
https://github.com/reactos/CMake.git
synced 2025-01-19 01:42:18 +00:00
clang-tidy: apply misc-redundant-expression fixes
This commit is contained in:
parent
88da3d68c2
commit
b932cd4298
@ -119,10 +119,9 @@ void cmCTestRunTest::CompressOutput()
|
||||
strm.next_out = out;
|
||||
ret = deflate(&strm, Z_FINISH);
|
||||
|
||||
if (ret == Z_STREAM_ERROR || ret != Z_STREAM_END) {
|
||||
if (ret != Z_STREAM_END) {
|
||||
cmCTestLog(this->CTest, ERROR_MESSAGE,
|
||||
"Error during output "
|
||||
"compression. Sending uncompressed output."
|
||||
"Error during output compression. Sending uncompressed output."
|
||||
<< std::endl);
|
||||
delete[] out;
|
||||
return;
|
||||
|
@ -2787,7 +2787,7 @@ bool cmCTest::CompressString(std::string& str)
|
||||
strm.next_out = &out[0];
|
||||
ret = deflate(&strm, Z_FINISH);
|
||||
|
||||
if (ret == Z_STREAM_ERROR || ret != Z_STREAM_END) {
|
||||
if (ret != Z_STREAM_END) {
|
||||
cmCTestLog(this, ERROR_MESSAGE, "Error during gzip compression."
|
||||
<< std::endl);
|
||||
return false;
|
||||
|
@ -156,7 +156,7 @@ void cmDocumentationFormatter::PrintColumn(std::ostream& os, const char* text)
|
||||
|
||||
// Move to beginning of next word. Skip over whitespace.
|
||||
l = r;
|
||||
while (*l && (*l == ' ')) {
|
||||
while (*l == ' ') {
|
||||
++l;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user