Skip to content

Invalid for loop. #2

@ditlef

Description

@ditlef

void DICOMParser::AddDICOMTagCallbackToAllTags(DICOMCallback* cb)
{
DICOMParserMap::iterator miter;
for (miter = Implementation->Map.begin();
miter != Implementation->Map.end();
miter++);

Visual Studio DICOMParser.cxx(665,16): warning : for loop has empty body [-Wempty-body]

Semicolon at end of last lime makes 'miter' set to collection end().
Calling method will crash.

Compiled code will full warnings in Visual Studio using clang toolset.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions