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

Fix warnings #1096

Merged
merged 3 commits into from
Jun 26, 2023
Merged

Fix warnings #1096

merged 3 commits into from
Jun 26, 2023

Conversation

jcfr
Copy link
Member

@jcfr jcfr commented Jun 14, 2023

I would appreciate a review of the fixes related to:

  • ctkVTKAbstractView
  • ctkDICOMImage
  • ctkDICOMThumbnailGenerator

Update: This pull request now only contain the changes for which I would appreciate a review. The other ones have been moved to;

@jcfr jcfr force-pushed the fix-warnings branch 2 times, most recently from 31f9139 to 5990704 Compare June 14, 2023 14:09
@jcfr jcfr mentioned this pull request Jun 15, 2023
1 task
Copy link
Contributor

@jamesobutler jamesobutler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Things look good here. Since I’m not sure about my last comment left on this PR I will approve

jcfr and others added 3 commits June 26, 2023 10:22
This commit fixes warnings like the following:

/path/to/CTK/Libs/DICOM/Widgets/ctkDICOMImage.cpp:122:25: warning: ‘QByteArray& QByteArray::append(const QString&)’ is deprecated: Use QString's toUtf8(), toLatin1() or toLocal8Bit() [-Wdeprecated-declarations]
  122 |     buffer.append(header);
      |                         ^

/path/to/CTK/Libs/DICOM/Widgets/ctkDICOMItemView.cpp:323:25: warning: ‘QByteArray& QByteArray::append(const QString&)’ is deprecated: Use QString's toUtf8(), toLatin1() or toLocal8Bit() [-Wdeprecated-declarations]
  323 |     buffer.append(header);
      |                         ^

Co-authored-by: James Butler <james.butler@perkinelmer.com>
Co-authored-by: Andras Lasso <lasso@queensu.ca>
…tView

This commit fixes the following warnings:

/path/to/CTK/Libs/Visualization/VTK/Widgets/ctkVTKAbstractView.cpp:207:26: warning: ‘void QTime::start()’ is deprecated: Use QElapsedTimer instead [-Wdeprecated-declarations]
  207 |     d->RequestTime.start();
      |                          ^

/path/to/CTK/Libs/Visualization/VTK/Widgets/ctkVTKAbstractView.cpp:210:35: warning: ‘int QTime::elapsed() const’ is deprecated: Use QElapsedTimer instead [-Wdeprecated-declarations]
  210 |   else if (d->RequestTime.elapsed() > msecsBeforeRender)
      |                                   ^
This commit fixes the following warning:

/path/to/CTK/Libs/DICOM/Widgets/ctkDICOMThumbnailGenerator.cpp:174:23: warning: ‘QByteArray& QByteArray::append(const QString&)’ is deprecated: Use QString's toUtf8(), toLatin1() or toLocal8Bit() [-Wdeprecated-declarations]
  174 |   buffer.append(header);
      |                       ^

Co-authored-by: James Butler <james.butler@perkinelmer.com>
Co-authored-by: Andras Lasso <lasso@queensu.ca>
@jcfr jcfr enabled auto-merge (rebase) June 26, 2023 14:27
@jcfr jcfr merged commit 5d241ec into commontk:master Jun 26, 2023
@jcfr jcfr deleted the fix-warnings branch June 27, 2023 05:25
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.

3 participants