COMP: Return 0 instead of false
This commit is contained in:
parent
386900bfdd
commit
337362dfcf
|
@ -46,7 +46,7 @@ cmCTestGenericHandler* cmCTestBuildCommand::InitializeHandler()
|
|||
if ( !handler )
|
||||
{
|
||||
this->SetError("internal CTest error. Cannot instantiate build handler");
|
||||
return false;
|
||||
return 0;
|
||||
}
|
||||
|
||||
const char* ctestBuildCommand
|
||||
|
@ -104,7 +104,7 @@ cmCTestGenericHandler* cmCTestBuildCommand::InitializeHandler()
|
|||
"this is a CMake project, or specify the CTEST_BUILD_COMMAND for "
|
||||
"cmake or any other project.";
|
||||
this->SetError(ostr.str().c_str());
|
||||
return false;
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -46,7 +46,7 @@ cmCTestGenericHandler* cmCTestConfigureCommand::InitializeHandler()
|
|||
this->SetError("Build directory not specified. Either use BUILD "
|
||||
"argument to CTEST_CONFIGURE command or set CTEST_BINARY_DIRECTORY "
|
||||
"variable");
|
||||
return false;
|
||||
return 0;
|
||||
}
|
||||
|
||||
const char* ctestConfigureCommand
|
||||
|
@ -69,7 +69,7 @@ cmCTestGenericHandler* cmCTestConfigureCommand::InitializeHandler()
|
|||
this->SetError("Source directory not specified. Either use SOURCE "
|
||||
"argument to CTEST_CONFIGURE command or set CTEST_SOURCE_DIRECTORY "
|
||||
"variable");
|
||||
return false;
|
||||
return 0;
|
||||
}
|
||||
std::string cmakeConfigureCommand = "\"";
|
||||
cmakeConfigureCommand += this->CTest->GetCMakeExecutable();
|
||||
|
@ -86,7 +86,7 @@ cmCTestGenericHandler* cmCTestConfigureCommand::InitializeHandler()
|
|||
this->SetError("Configure command is not specified. If this is a CMake "
|
||||
"project, specify CTEST_CMAKE_GENERATOR, or if this is not CMake "
|
||||
"project, specify CTEST_CONFIGURE_COMMAND.");
|
||||
return false;
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -96,7 +96,7 @@ cmCTestGenericHandler* cmCTestConfigureCommand::InitializeHandler()
|
|||
{
|
||||
this->SetError(
|
||||
"internal CTest error. Cannot instantiate configure handler");
|
||||
return false;
|
||||
return 0;
|
||||
}
|
||||
return handler;
|
||||
}
|
||||
|
|
|
@ -29,7 +29,7 @@ cmCTestGenericHandler* cmCTestCoverageCommand::InitializeHandler()
|
|||
if ( !handler )
|
||||
{
|
||||
this->SetError("internal CTest error. Cannot instantiate test handler");
|
||||
return false;
|
||||
return 0;
|
||||
}
|
||||
return handler;
|
||||
}
|
||||
|
|
|
@ -95,7 +95,7 @@ cmCTestGenericHandler* cmCTestSubmitCommand::InitializeHandler()
|
|||
if ( !this->CTest->SubmitExtraFiles(newExtraFiles))
|
||||
{
|
||||
this->SetError("problem submitting extra files.");
|
||||
return false;
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -104,7 +104,7 @@ cmCTestGenericHandler* cmCTestSubmitCommand::InitializeHandler()
|
|||
if ( !handler )
|
||||
{
|
||||
this->SetError("internal CTest error. Cannot instantiate submit handler");
|
||||
return false;
|
||||
return 0;
|
||||
}
|
||||
return handler;
|
||||
}
|
||||
|
|
|
@ -59,13 +59,13 @@ cmCTestGenericHandler* cmCTestUpdateCommand::InitializeHandler()
|
|||
if ( !handler )
|
||||
{
|
||||
this->SetError("internal CTest error. Cannot instantiate update handler");
|
||||
return false;
|
||||
return 0;
|
||||
}
|
||||
handler->SetCommand(this);
|
||||
if ( source_dir.empty() )
|
||||
{
|
||||
this->SetError("source directory not specified. Please use SOURCE tag");
|
||||
return false;
|
||||
return 0;
|
||||
}
|
||||
handler->SetOption("SourceDirectory", source_dir.c_str());
|
||||
if ( initialCheckoutCommand )
|
||||
|
@ -84,7 +84,7 @@ cmCTestGenericHandler* cmCTestUpdateCommand::InitializeHandler()
|
|||
"CTEST_CHECKOUT_COMMAND.";
|
||||
}
|
||||
this->SetError(str.str().c_str());
|
||||
return false;
|
||||
return 0;
|
||||
}
|
||||
return handler;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue