From e2a1062ae6d9c57d92dfb057b4d9bc77da61453b Mon Sep 17 00:00:00 2001 From: Aki Tuomi Date: Thu, 25 Jul 2024 07:39:50 +0300 Subject: [PATCH] lua-base4: Rename is to stream in loadStream() --- pdns/lua-base4.cc | 4 ++-- pdns/lua-base4.hh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pdns/lua-base4.cc b/pdns/lua-base4.cc index 3984fe62e9..19e6aef338 100644 --- a/pdns/lua-base4.cc +++ b/pdns/lua-base4.cc @@ -289,8 +289,8 @@ void BaseLua4::prepareContext() { d_lw->writeVariable("pdns", d_pd); } -void BaseLua4::loadStream(std::istream &is) { - d_lw->executeCode(is); +void BaseLua4::loadStream(std::istream &stream) { + d_lw->executeCode(stream); postLoad(); } diff --git a/pdns/lua-base4.hh b/pdns/lua-base4.hh index 20b0159716..1cf9e4b7c0 100644 --- a/pdns/lua-base4.hh +++ b/pdns/lua-base4.hh @@ -15,7 +15,7 @@ public: BaseLua4(); void loadFile(const std::string& fname); void loadString(const std::string& script); - void loadStream(std::istream& is); + void loadStream(std::istream& stream); virtual ~BaseLua4(); // this is so unique_ptr works with an incomplete type protected: void prepareContext(); -- 2.47.2