mirror of
https://github.com/Kitware/CMake.git
synced 2025-10-18 08:51:52 +08:00
cmUVProcessChain: Simplify builder initialization
This commit is contained in:
@@ -57,12 +57,7 @@ struct cmUVProcessChain::InternalData
|
|||||||
void Finish();
|
void Finish();
|
||||||
};
|
};
|
||||||
|
|
||||||
cmUVProcessChainBuilder::cmUVProcessChainBuilder()
|
cmUVProcessChainBuilder::cmUVProcessChainBuilder() = default;
|
||||||
{
|
|
||||||
this->SetNoStream(Stream_INPUT)
|
|
||||||
.SetNoStream(Stream_OUTPUT)
|
|
||||||
.SetNoStream(Stream_ERROR);
|
|
||||||
}
|
|
||||||
|
|
||||||
cmUVProcessChainBuilder& cmUVProcessChainBuilder::AddCommand(
|
cmUVProcessChainBuilder& cmUVProcessChainBuilder::AddCommand(
|
||||||
const std::vector<std::string>& arguments)
|
const std::vector<std::string>& arguments)
|
||||||
|
@@ -50,8 +50,8 @@ private:
|
|||||||
|
|
||||||
struct StdioConfiguration
|
struct StdioConfiguration
|
||||||
{
|
{
|
||||||
StdioType Type;
|
StdioType Type = None;
|
||||||
int FileDescriptor;
|
int FileDescriptor = -1;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct ProcessConfiguration
|
struct ProcessConfiguration
|
||||||
|
Reference in New Issue
Block a user