summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2024-01-24 15:07:26 (GMT)
committerBrad King <brad.king@kitware.com>2024-01-24 21:59:49 (GMT)
commit116bb2b70f87276515f9b64937502ce6c8754cbd (patch)
tree94f99c4ac8c3cb5be01462a266896009ca3c36f2 /Source
parentd32c30906a64cda66033842dfc7af3665c477f4e (diff)
downloadCMake-116bb2b70f87276515f9b64937502ce6c8754cbd.zip
CMake-116bb2b70f87276515f9b64937502ce6c8754cbd.tar.gz
CMake-116bb2b70f87276515f9b64937502ce6c8754cbd.tar.bz2
cmUVProcessChain: Simplify builder initialization
Diffstat (limited to 'Source')
-rw-r--r--Source/cmUVProcessChain.cxx7
-rw-r--r--Source/cmUVProcessChain.h4
2 files changed, 3 insertions, 8 deletions
diff --git a/Source/cmUVProcessChain.cxx b/Source/cmUVProcessChain.cxx
index 655e52a..1e826c1 100644
--- a/Source/cmUVProcessChain.cxx
+++ b/Source/cmUVProcessChain.cxx
@@ -57,12 +57,7 @@ struct cmUVProcessChain::InternalData
void Finish();
};
-cmUVProcessChainBuilder::cmUVProcessChainBuilder()
-{
- this->SetNoStream(Stream_INPUT)
- .SetNoStream(Stream_OUTPUT)
- .SetNoStream(Stream_ERROR);
-}
+cmUVProcessChainBuilder::cmUVProcessChainBuilder() = default;
cmUVProcessChainBuilder& cmUVProcessChainBuilder::AddCommand(
const std::vector<std::string>& arguments)
diff --git a/Source/cmUVProcessChain.h b/Source/cmUVProcessChain.h
index 0f37e7d..83af639 100644
--- a/Source/cmUVProcessChain.h
+++ b/Source/cmUVProcessChain.h
@@ -50,8 +50,8 @@ private:
struct StdioConfiguration
{
- StdioType Type;
- int FileDescriptor;
+ StdioType Type = None;
+ int FileDescriptor = -1;
};
struct ProcessConfiguration