diff options
author | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2014-04-12 02:10:49 (GMT) |
---|---|---|
committer | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2014-04-12 02:10:49 (GMT) |
commit | adff7e81bd0013af6f2e468e1eb0b9622897ab20 (patch) | |
tree | 987f4fd9c43e3aa00f42277d6ab796f6b46982c9 /c++/src/H5DxferProp.cpp | |
parent | d9703d66de5fe67b1bc3bb1c1017a22d50e369bf (diff) | |
download | hdf5-adff7e81bd0013af6f2e468e1eb0b9622897ab20.zip hdf5-adff7e81bd0013af6f2e468e1eb0b9622897ab20.tar.gz hdf5-adff7e81bd0013af6f2e468e1eb0b9622897ab20.tar.bz2 |
[svn-r25022] Purpose: Code improvement
Description:
- Overloaded Atribute::getName to take a char* for the attribute name:
ssize_t Attribute::getName(char* attr_name, size_t buf_size)
- Switched the arguments in this function:
ssize_t getName(size_t buf_size, H5std_string& attr_name)
so it became:
ssize_t getName(H5std_string& attr_name, size_t buf_size)
The second argument is default to 0, and can be skipped.
- Removed this function:
H5std_string getName(size_t buf_size); it'll collide with the
first function when that function takes a NULL for the first
argument, and uses default value for the second argument.
- Added more tests
(merged from trunk-r24938)
Platforms tested:
Linux/ppc64 (ostrich)
Linux/32 2.6 (jam)
SunOS 5.11 (emu) with gmake
Diffstat (limited to 'c++/src/H5DxferProp.cpp')
-rw-r--r-- | c++/src/H5DxferProp.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/c++/src/H5DxferProp.cpp b/c++/src/H5DxferProp.cpp index 1e5c7b8..c58eeda 100644 --- a/c++/src/H5DxferProp.cpp +++ b/c++/src/H5DxferProp.cpp @@ -284,7 +284,6 @@ H5std_string DSetMemXferPropList::getDataTransform() const { // Temporary buffer for char* expression char* exp_C = new char[exp_len+1]; - exp_C = (char *)HDmalloc(exp_len+1); HDmemset(exp_C, 0, exp_len+1); // clear buffer // Used overloaded function |