diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2008-09-16 16:22:16 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2008-09-16 16:22:16 (GMT) |
commit | b9be0455961ca1098bc4977bf1138394932b75db (patch) | |
tree | 8bf7377bbda85d614e4e5984c5a1a59ac323310e /c++/examples | |
parent | 37a1f87664a1b2026e1d2a1dd5033eb2e8b1f5fc (diff) | |
download | hdf5-b9be0455961ca1098bc4977bf1138394932b75db.zip hdf5-b9be0455961ca1098bc4977bf1138394932b75db.tar.gz hdf5-b9be0455961ca1098bc4977bf1138394932b75db.tar.bz2 |
[svn-r15629] Description:
Remove trailing whitespace from C/C++ source files, with the following
script:
foreach f (*.[ch] *.cpp)
sed 's/[[:blank:]]*$//' $f > sed.out && mv sed.out $f
end
Tested on:
Mac OS X/32 10.5.5 (amazon)
No need for h5committest, just whitespace changes...
Diffstat (limited to 'c++/examples')
-rw-r--r-- | c++/examples/chunks.cpp | 2 | ||||
-rw-r--r-- | c++/examples/h5group.cpp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/c++/examples/chunks.cpp b/c++/examples/chunks.cpp index b39c47b..286934a 100644 --- a/c++/examples/chunks.cpp +++ b/c++/examples/chunks.cpp @@ -80,7 +80,7 @@ int main (void) hsize_t dims[2]; // dataset dimensions rank = filespace.getSimpleExtentDims( dims ); cout << "dataset rank = " << rank << ", dimensions " - << (unsigned long)(dims[0]) << " x " + << (unsigned long)(dims[0]) << " x " << (unsigned long)(dims[1]) << endl; /* diff --git a/c++/examples/h5group.cpp b/c++/examples/h5group.cpp index 09dc7ee..a5137bc 100644 --- a/c++/examples/h5group.cpp +++ b/c++/examples/h5group.cpp @@ -94,7 +94,7 @@ int main(void) * Create the first dataset. */ DataSet* dataset = new DataSet(file->createDataSet( - "/Data/Compressed_Data", PredType::NATIVE_INT, + "/Data/Compressed_Data", PredType::NATIVE_INT, *dataspace, ds_creatplist )); /* @@ -109,7 +109,7 @@ int main(void) dims[0] = 500; dims[1] = 20; dataspace = new DataSpace(RANK, dims); // create second dspace - dataset = new DataSet(file->createDataSet("/Data/Float_Data", + dataset = new DataSet(file->createDataSet("/Data/Float_Data", PredType::NATIVE_FLOAT, *dataspace)); delete dataset; |