Commit f94ec83c authored by Thomas Jahns's avatar Thomas Jahns 🤸
Browse files

Simplify xtypeIsText.

parent e004048b
......@@ -395,15 +395,13 @@ void cdfGetAttText(int fileID, int ncvarid, const char *attname, size_t attlen,
}
static
bool xtypeIsText(nc_type xtype)
bool xtypeIsText(int xtype)
{
bool isText = false;
if ( xtype == NC_CHAR ) isText = true;
bool isText = ( xtype == NC_CHAR )
#if defined (HAVE_NETCDF4)
else if ( xtype == NC_STRING ) isText = true;
|| ( xtype == NC_STRING )
#endif
;
return isText;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment