COMP: Return 0 instead of false

This commit is contained in:
Andy Cedilnik 2006-03-29 12:33:41 -05:00
parent 386900bfdd
commit 337362dfcf
5 changed files with 12 additions and 12 deletions

View File

@ -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;
}
}

View File

@ -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;
}

View File

@ -29,7 +29,7 @@ cmCTestGenericHandler* cmCTestCoverageCommand::InitializeHandler()
if ( !handler )
{
this->SetError("internal CTest error. Cannot instantiate test handler");
return false;
return 0;
}
return handler;
}

View File

@ -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;
}

View File

@ -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;
}