Skip to content

Commit

Permalink
Const correctness for Alfalfa after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
jmarrec committed Oct 29, 2024
1 parent fb16797 commit fe41009
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/alfalfa/AlfalfaJSON.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ namespace alfalfa {
m_points.push_back(point);
}

std::vector<AlfalfaPoint> AlfalfaJSON_Impl::points() {
std::vector<AlfalfaPoint> AlfalfaJSON_Impl::points() const {
return m_points;
}

Expand Down Expand Up @@ -201,7 +201,7 @@ namespace alfalfa {
return m_impl->toJSON();
}

std::vector<AlfalfaPoint> AlfalfaJSON::points() {
std::vector<AlfalfaPoint> AlfalfaJSON::points() const {
return m_impl->points();
}

Expand Down
2 changes: 1 addition & 1 deletion src/alfalfa/AlfalfaJSON.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ namespace alfalfa {
/**
* Get a vector of all points currently exported to the Alfalfa API
*/
std::vector<AlfalfaPoint> points();
std::vector<AlfalfaPoint> points() const;

private:
static boost::optional<std::string> getName(const openstudio::IdfObject& idf_object);
Expand Down
2 changes: 1 addition & 1 deletion src/alfalfa/AlfalfaJSON_Impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ namespace alfalfa {

void exposePoint(const AlfalfaPoint& point);

std::vector<AlfalfaPoint> points();
std::vector<AlfalfaPoint> points() const;

private:
openstudio::path m_JSONPath;
Expand Down

0 comments on commit fe41009

Please sign in to comment.