Skip to content

Commit

Permalink
Merge pull request #845 from BRAINSia/update-dcmtk-364-compat
Browse files Browse the repository at this point in the history
COMP: DCMTK 3.6.4 updated function signatures
  • Loading branch information
pieper authored Dec 31, 2018
2 parents 9efdf6b + 4211361 commit a42a671
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Libs/DICOM/Core/ctkDICOMItem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@

#include "ctkDICOMItem.h"

#include <dcmtk/dcmdata/dcuid.h>
#include <dcmtk/dcmdata/dctk.h>
#include <dcmtk/dcmdata/dcostrmb.h>
#include <dcmtk/dcmdata/dcistrmb.h>
Expand Down Expand Up @@ -950,7 +951,11 @@ QString ctkDICOMItem::TagDescription( const DcmTag& tag )
{
returnName = entry->getTagName();
}
#if OFFIS_DCMTK_VERSION_NUMBER < 364
dcmDataDict.unlock();
#else
dcmDataDict.rdunlock();
#endif
return returnName;
}

Expand All @@ -964,7 +969,11 @@ QString ctkDICOMItem::TagVR( const DcmTag& tag )
{
returnVR = entry->getVR().getVRName();
}
#if OFFIS_DCMTK_VERSION_NUMBER < 364
dcmDataDict.unlock();
#else
dcmDataDict.rdunlock();
#endif
return returnVR;
}

Expand Down

0 comments on commit a42a671

Please sign in to comment.