Skip to content

Commit 8902418

Browse files
authored
Cleaning up.
2 parents 30ec0f7 + a494c4a commit 8902418

27 files changed

+42
-50
lines changed

src/file/file_p.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class File::Impl: public Logger::Impl
4545
CombineArchivePtr mCombineArchive;
4646

4747
explicit Impl(const std::string &pFileNameOrUrl, bool pRetrieveContents);
48-
~Impl();
48+
~Impl() override;
4949

5050
void checkType(const FilePtr &pOwner, bool pResetType = false);
5151

src/logger/issue_p.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ class Issue::Impl
2727
std::string mDescription;
2828

2929
explicit Impl(Type pType, const std::string &pDescription);
30-
~Impl() = default;
3130

3231
Type type() const;
3332
std::string typeAsString() const;

src/logger/logger_p.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ class Logger::Impl
3232
IssuePtrs mErrors;
3333
IssuePtrs mWarnings;
3434

35+
virtual ~Impl() = default;
36+
3537
bool hasIssues() const;
3638
size_t issueCount() const;
3739
IssuePtrs issues() const;

src/sed/sedabstracttask.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,12 @@ SedAbstractTask::SedAbstractTask(Impl *pPimpl)
3838

3939
SedAbstractTask::Impl *SedAbstractTask::pimpl()
4040
{
41-
return reinterpret_cast<Impl *>(SedBase::pimpl());
41+
return static_cast<Impl *>(SedBase::pimpl());
4242
}
4343

4444
const SedAbstractTask::Impl *SedAbstractTask::pimpl() const
4545
{
46-
return reinterpret_cast<const Impl *>(SedBase::pimpl());
46+
return static_cast<const Impl *>(SedBase::pimpl());
4747
}
4848

4949
} // namespace libOpenCOR

src/sed/sedanalysis.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ SedAnalysis::Impl *SedAnalysis::pimpl()
5252
/*---GRY---
5353
const SedAnalysis::Impl *SedAnalysis::pimpl() const
5454
{
55-
return reinterpret_cast<const Impl *>(SedSimulation::pimpl());
55+
return static_cast<const Impl *>(SedSimulation::pimpl());
5656
}
5757
*/
5858

src/sed/sedbase_p.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ class SedBase::Impl: public Logger::Impl
3232
std::string mMetaId;
3333

3434
explicit Impl(const std::string &pId = {});
35-
virtual ~Impl() = default;
3635

3736
std::string id() const;
3837
void setId(const std::string &pId);

src/sed/seddatadescription.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,14 @@ SedDataDescription::~SedDataDescription()
3535
/*---GRY---
3636
SedDataDescription::Impl *SedDataDescription::pimpl()
3737
{
38-
return reinterpret_cast<Impl *>(SedBase::pimpl());
38+
return static_cast<Impl *>(SedBase::pimpl());
3939
}
4040
*/
4141

4242
/*---GRY---
4343
const SedDataDescription::Impl *SedDataDescription::pimpl() const
4444
{
45-
return reinterpret_cast<const Impl *>(SedBase::pimpl());
45+
return static_cast<const Impl *>(SedBase::pimpl());
4646
}
4747
*/
4848

src/sed/seddatagenerator.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,14 @@ SedDataGenerator::~SedDataGenerator()
3535
/*---GRY---
3636
SedDataGenerator::Impl *SedDataGenerator::pimpl()
3737
{
38-
return reinterpret_cast<Impl *>(SedBase::pimpl());
38+
return static_cast<Impl *>(SedBase::pimpl());
3939
}
4040
*/
4141

4242
/*---GRY---
4343
const SedDataGenerator::Impl *SedDataGenerator::pimpl() const
4444
{
45-
return reinterpret_cast<const Impl *>(SedBase::pimpl());
45+
return static_cast<const Impl *>(SedBase::pimpl());
4646
}
4747
*/
4848

src/sed/seddocument.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -430,12 +430,12 @@ SedDocument::~SedDocument()
430430

431431
SedDocument::Impl *SedDocument::pimpl()
432432
{
433-
return reinterpret_cast<Impl *>(Logger::pimpl());
433+
return static_cast<Impl *>(Logger::pimpl());
434434
}
435435

436436
const SedDocument::Impl *SedDocument::pimpl() const
437437
{
438-
return reinterpret_cast<const Impl *>(Logger::pimpl());
438+
return static_cast<const Impl *>(Logger::pimpl());
439439
}
440440

441441
SedDocumentPtr SedDocument::create(const FilePtr &pFile)

src/sed/sedinstance.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,12 +127,12 @@ SedInstance::~SedInstance()
127127

128128
SedInstance::Impl *SedInstance::pimpl()
129129
{
130-
return reinterpret_cast<Impl *>(Logger::pimpl());
130+
return static_cast<Impl *>(Logger::pimpl());
131131
}
132132

133133
const SedInstance::Impl *SedInstance::pimpl() const
134134
{
135-
return reinterpret_cast<const Impl *>(Logger::pimpl());
135+
return static_cast<const Impl *>(Logger::pimpl());
136136
}
137137

138138
double SedInstance::run()

0 commit comments

Comments
 (0)