mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#1839 Observed Data : Added const to RifSummaryReaderInterface
This commit is contained in:
@@ -26,7 +26,7 @@
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
const std::vector<RifEclipseSummaryAddress>& RifSummaryReaderInterface::allResultAddresses()
|
||||
const std::vector<RifEclipseSummaryAddress>& RifSummaryReaderInterface::allResultAddresses() const
|
||||
{
|
||||
return m_allResultAddresses;
|
||||
}
|
||||
@@ -50,9 +50,9 @@ std::vector<QDateTime> RifSummaryReaderInterface::fromTimeT(const std::vector<ti
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
bool RifSummaryReaderInterface::hasAddress(const RifEclipseSummaryAddress& resultAddress)
|
||||
bool RifSummaryReaderInterface::hasAddress(const RifEclipseSummaryAddress& resultAddress) const
|
||||
{
|
||||
for (RifEclipseSummaryAddress summaryAddress : m_allResultAddresses)
|
||||
for (const RifEclipseSummaryAddress& summaryAddress : m_allResultAddresses)
|
||||
{
|
||||
if (summaryAddress == resultAddress)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user