Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Libs/DICOM: Fix warning and build errors #860

Merged
merged 3 commits into from
Apr 15, 2019
Merged

Conversation

jcfr
Copy link
Member

@jcfr jcfr commented Apr 15, 2019

No description provided.

This commit fixes the following error:

  error: invalid initialization of non-const reference of type ‘DcmTagKey&’ from an rvalue of type ‘DcmTagKey
…rRadiotherapySeriesDescriptionRule

This commit fixes warnings like the following:

  /path/to/Slicer-SuperBuild/CTK/Libs/DICOM/Core/ctkDICOMDisplayedFieldGeneratorDefaultRule.cpp:72:26: warning: unused parameter ‘emptyFieldsDisplayStudies’ [-Wunused-parameter]
   QMap<QString, QString> emptyFieldsDisplayStudies,
                          ^
…rAbstractRule

This commit fixes the following warning:

  /path/to/Slicer-SuperBuild/CTK/Libs/DICOM/Core/ctkDICOMDisplayedFieldGenerator.cpp: In destructor ‘virtual ctkDICOMDisplayedFieldGeneratorPrivate::~ctkDICOMDisplayedFieldGeneratorPrivate()’:
  /path/to/Slicer-SuperBuild/CTK/Libs/DICOM/Core/ctkDICOMDisplayedFieldGenerator.cpp:62:12: warning: deleting object of abstract class type ‘ctkDICOMDisplayedFieldGeneratorAbstractRule’ which has non-virtual destructor will cause undefined behaviour [-Wdelete-non-virtual-dtor]
       delete rule;
              ^
@jcfr jcfr merged commit faf3e5b into master Apr 15, 2019
@jcfr jcfr deleted the fix-warnings-and-errors branch April 15, 2019 22:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant