mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-03-13 16:47:58 +08:00
Get class name null str (#899)
* Fixed MSVC compile error in C++23 mode Error message from MSVC with C++23 enabled: error C2440: 'return': cannot convert from 'int' to 'std::basic_string<char,std::char_traits,std::allocator>' * Committing clang-format changes Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
This commit is contained in:
parent
de60f08b0d
commit
09283ffbcb
@ -543,7 +543,7 @@ PropList::getPropSize(const H5std_string &name) const
|
||||
// Function: PropList::getClassName
|
||||
///\brief Return the name of a generic property list class.
|
||||
///\return A string containing the class name, if success, otherwise,
|
||||
/// a NULL string.
|
||||
/// an empty string.
|
||||
// Programmer: Binh-Minh Ribler - April, 2004
|
||||
//--------------------------------------------------------------------------
|
||||
H5std_string
|
||||
@ -557,8 +557,9 @@ PropList::getClassName() const
|
||||
return (class_name);
|
||||
}
|
||||
else
|
||||
return 0;
|
||||
return "";
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------
|
||||
// Function: PropList::getNumProps
|
||||
///\brief Returns the number of properties in this property list or class.
|
||||
|
Loading…
x
Reference in New Issue
Block a user