From de95238d09119d5b6d396caca576f55707c9983e Mon Sep 17 00:00:00 2001 From: Boyang Han Date: Mon, 4 Oct 2021 20:54:48 +0800 Subject: [PATCH] Mark `PLA.dump` as const --- src/Pla.cpp | 2 +- src/Pla.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Pla.cpp b/src/Pla.cpp index 12c697b..e6b7afa 100644 --- a/src/Pla.cpp +++ b/src/Pla.cpp @@ -102,7 +102,7 @@ void PLA::parse() { } } -void PLA::dump() { +void PLA::dump() const { std::cout << ".i " << Cube::getInputCount() << std::endl; std::cout << ".o " << Cube::getOutputCount() << std::endl; std::cout << ".type f" << std::endl; diff --git a/src/Pla.hpp b/src/Pla.hpp index 4dd0cb5..a58d9b5 100644 --- a/src/Pla.hpp +++ b/src/Pla.hpp @@ -12,7 +12,7 @@ namespace espresso { class PLA { public: explicit PLA(); - void dump(); + void dump() const; void expand(); private: