Skip to content
Snippets Groups Projects
Commit 17c78753 authored by Thomas Jahns's avatar Thomas Jahns :cartwheel: Committed by Sergey Kosukhin
Browse files

Fix condestruct pattern.

* Given how many lines documenting the confusing pattern and how many
  compiler warnings are eliminated by this change...
parent eb9b38ca
No related branches found
No related tags found
2 merge requests!34Version 2.2.0,!13Consolidation with CDI-PIO (develop)
......@@ -11,8 +11,8 @@
struct CdiFallbackIterator
{
CdiIterator super;
int streamId, vlistId, subtypeId;
char *path; // needed for clone() & serialize()
int streamId, vlistId, subtypeId;
int variableCount, curVariable;
int curLevelCount, curLevel;
......@@ -90,7 +90,7 @@ cdiFallbackIterator_clone(CdiIterator *super)
CdiFallbackIterator *me = (CdiFallbackIterator *) (void *) super;
// Make another stream for this file. This yields an unadvanced iterator.
CdiFallbackIterator *clone = (CdiFallbackIterator *) cdiFallbackIterator_new(me->path, me->super.filetype);
CdiFallbackIterator *clone = (CdiFallbackIterator *) (void *) cdiFallbackIterator_new(me->path, me->super.filetype);
if (clone)
{
// Point the clone to the same position in the file.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment