CppCheck : Add const

This commit is contained in:
Magne Sjaastad 2018-10-12 16:34:01 +02:00
parent ab13e0f0b6
commit e8224bc7b8
3 changed files with 3 additions and 3 deletions

View File

@ -73,7 +73,7 @@ RifEclipseOutputTableColumn floatNumberColumn(const QString& text)
QString RicWellPathFractureTextReportFeatureImpl::wellPathFractureReport(
RimEclipseCase* sourceCase,
const std::vector<RimWellPath*>& wellPaths,
const std::vector<RicWellPathFractureReportItem>& wellPathFractureReportItems)
const std::vector<RicWellPathFractureReportItem>& wellPathFractureReportItems) const
{
QString lineStart = "--";

View File

@ -37,7 +37,7 @@ class RicWellPathFractureTextReportFeatureImpl
public:
QString wellPathFractureReport(RimEclipseCase* sourceCase,
const std::vector<RimWellPath*>& wellPaths,
const std::vector<RicWellPathFractureReportItem>& wellPathFractureReportItems);
const std::vector<RicWellPathFractureReportItem>& wellPathFractureReportItems) const;
static std::vector<RimWellPath*> wellPathsWithActiveFractures();

View File

@ -49,7 +49,7 @@ public:
{
}
bool operator<(const LocationForNewFracture& loc)
bool operator<(const LocationForNewFracture& loc) const
{
return measuredDepth < loc.measuredDepth;
}