Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cdo
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Contributor 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
mpim-sw
cdo
Commits
957a132b
Commit
957a132b
authored
1 month ago
by
Oliver Heidmann
Browse files
Options
Downloads
Patches
Plain Diff
fixed missing const
parent
a20c7a86
No related branches found
Branches containing commit
No related tags found
1 merge request
!312
CMake Improvements and fixes
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/cdo_varlist.cc
+1
-1
1 addition, 1 deletion
src/cdo_varlist.cc
src/cdo_varlist.h
+1
-1
1 addition, 1 deletion
src/cdo_varlist.h
with
2 additions
and
2 deletions
src/cdo_varlist.cc
+
1
−
1
View file @
957a132b
...
...
@@ -98,7 +98,7 @@ VarList::set_num_const_vars(const CdoVars &cdoVars)
if
(
var
.
timeType
==
TIME_CONSTANT
)
m_numConstVars
++
;
}
}
VarList
::
VarList
(
int
_vlistID
)
:
vlistID
(
_vlistID
)
VarList
::
VarList
(
const
int
_vlistID
)
:
vlistID
(
_vlistID
)
{
cdoVars_init
(
vars
,
_vlistID
);
m_maxFields
=
vlistNumFields
(
_vlistID
);
...
...
This diff is collapsed.
Click to expand it.
src/cdo_varlist.h
+
1
−
1
View file @
957a132b
...
...
@@ -64,7 +64,7 @@ public:
CdoVars
vars
;
int
vlistID
{
CDI_UNDEFID
};
VarList
(
int
_vlistID
);
VarList
(
const
int
_vlistID
);
// clang-format off
void
isInit
()
const
{
assert
(
vlistID
!=
CDI_UNDEFID
);
}
...
...
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