Skip to content

Commit

Permalink
COMP: Fix -Wdeprecated-declarations in ctkDICOMBrowserTester
Browse files Browse the repository at this point in the history
This commit fixes the following warning:

/path/to/CTK/Libs/DICOM/Widgets/Testing/Cpp/ctkDICOMBrowserTest.cpp:79:49: warning: ‘QDir& QDir::operator=(const QString&)’ is deprecated: Use QDir::setPath() instead [-Wdeprecated-declarations]
   79 |   this->DICOMDir = dataDir.filePath("Data/DICOM");
      |                                                 ^
  • Loading branch information
jcfr committed Jun 14, 2023
1 parent 2ce5e5d commit 158c2fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Libs/DICOM/Widgets/Testing/Cpp/ctkDICOMBrowserTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ void ctkDICOMBrowserTester::initTestCase()
QDir dataDir = QDir(QProcessEnvironment::systemEnvironment().value("CTKData_DIR", ""));
QVERIFY(dataDir.exists());

this->DICOMDir = dataDir.filePath("Data/DICOM");
this->DICOMDir.setPath(dataDir.filePath("Data/DICOM"));
QVERIFY(this->DICOMDir.exists());

this->DatabaseDirectoryName = QDir::tempPath() + "/ctkDICOMBrowserTest-Database";
Expand Down

0 comments on commit 158c2fc

Please sign in to comment.