summaryrefslogtreecommitdiffstats
path: root/src/OSSupport/GZipFile.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/OSSupport/GZipFile.cpp')
-rw-r--r--src/OSSupport/GZipFile.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/OSSupport/GZipFile.cpp b/src/OSSupport/GZipFile.cpp
index 0bf26dfed..a08fe2441 100644
--- a/src/OSSupport/GZipFile.cpp
+++ b/src/OSSupport/GZipFile.cpp
@@ -14,8 +14,8 @@
Compression::Result GZipFile::ReadRestOfFile(const std::string & a_FileName)
{
InputFileStream File(a_FileName, InputFileStream::binary);
- const std::string Input{ std::istreambuf_iterator<char>(File), std::istreambuf_iterator<char>() };
- const ContiguousByteBufferView Data{ reinterpret_cast<const std::byte *>(Input.data()), Input.size() };
+ const std::string Input {std::istreambuf_iterator<char>(File), std::istreambuf_iterator<char>()};
+ const ContiguousByteBufferView Data {reinterpret_cast<const std::byte *>(Input.data()), Input.size()};
return Compression::Extractor().ExtractGZip(Data);
}
@@ -26,5 +26,6 @@ Compression::Result GZipFile::ReadRestOfFile(const std::string & a_FileName)
void GZipFile::Write(const std::string & a_FileName, ContiguousByteBufferView a_Contents)
{
- OutputFileStream(a_FileName, OutputFileStream::binary) << Compression::Compressor().CompressGZip(a_Contents).GetStringView();
+ OutputFileStream(a_FileName, OutputFileStream::binary)
+ << Compression::Compressor().CompressGZip(a_Contents).GetStringView();
}