Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
mantid
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mantidproject
mantid
Commits
14cc482e
Commit
14cc482e
authored
5 years ago
by
David Fairbrother
Browse files
Options
Downloads
Patches
Plain Diff
Fix cppcheck warnings introduced into master
parent
18672c61
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Framework/Nexus/src/NexusHDF5Descriptor.cpp
+6
-9
6 additions, 9 deletions
Framework/Nexus/src/NexusHDF5Descriptor.cpp
with
6 additions
and
9 deletions
Framework/Nexus/src/NexusHDF5Descriptor.cpp
+
6
−
9
View file @
14cc482e
...
...
@@ -28,15 +28,12 @@ namespace {
*/
herr_t
readStringAttribute
(
hid_t
attr
,
char
**
data
)
{
herr_t
iRet
=
0
;
hid_t
atype
=
-
1
;
hid_t
space
;
int
ndims
;
hsize_t
thedims
[
H5S_MAX_RANK
],
sdim
;
atype
=
H5Aget_type
(
attr
);
sdim
=
H5Tget_size
(
atype
);
space
=
H5Aget_space
(
attr
);
ndims
=
H5Sget_simple_extent_dims
(
space
,
thedims
,
NULL
);
hsize_t
thedims
[
H5S_MAX_RANK
];
hid_t
atype
=
H5Aget_type
(
attr
);
hsize_t
sdim
=
H5Tget_size
(
atype
);
hid_t
space
=
H5Aget_space
(
attr
);
int
ndims
=
H5Sget_simple_extent_dims
(
space
,
thedims
,
NULL
);
if
(
ndims
==
0
)
{
if
(
H5Tis_variable_str
(
atype
))
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment