forked from boostorg/endian
[cleanup] remove trailing whitespace from source code files
This commit is contained in:
1 parent
2db73ab893
commit
4b4123a0fa
18 files changed
+116
-116
No files matched your search
@@ -1,4 +1,4 @@
|
||||
// endian/example/conversion_use_case.cpp
|
||||
// endian/example/conversion_use_case.cpp
|
||||
|
||||
// Copyright Beman Dawes 2014
|
||||
|
||||
@@ -47,5 +47,5 @@ int main()
|
||||
out_rec.balance = boost::endian::native_to_big(out_rec.balance); // reverse if needed
|
||||
out.write((const char*)&out_rec, sizeof(out_rec));
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -18,7 +18,7 @@
|
||||
|
||||
using namespace boost::endian;
|
||||
|
||||
namespace
|
||||
namespace
|
||||
{
|
||||
// This is an extract from a very widely used GIS file format. Why the designer
|
||||
// decided to mix big and little endians in the same file is not known. But
|
||||
@@ -39,7 +39,7 @@ namespace
|
||||
int main(int, char* [])
|
||||
{
|
||||
header h;
|
||||
|
||||
|
||||
BOOST_STATIC_ASSERT(sizeof(h) == 16U); // reality check
|
||||
|
||||
h.file_code = 0x01020304;
|
||||
@@ -54,7 +54,7 @@ int main(int, char* [])
|
||||
// does bulk I/O operations, <cstdio> fopen/fwrite is used for I/O in this example.
|
||||
|
||||
std::FILE* fi = std::fopen(filename, "wb"); // MUST BE BINARY
|
||||
|
||||
|
||||
if (!fi)
|
||||
{
|
||||
std::cout << "could not open " << filename << '\n';
|
||||
|
||||
@@ -121,7 +121,7 @@ using std::endl;
|
||||
// Recommended approach when conversion time is a concern
|
||||
//
|
||||
// Conversion time is a concert with this application because (1) any conversions
|
||||
// performed in the loop will consume a great deal of time and because (2)
|
||||
// performed in the loop will consume a great deal of time and because (2)
|
||||
// computation time will be much greater than I/O time.
|
||||
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user