From: Aki Tuomi Date: Thu, 25 Jul 2024 04:39:50 +0000 (+0300) Subject: lua-base4: Rename is to stream in loadStream() X-Git-Tag: rec-5.2.0-alpha1~149^2~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e2a1062ae6d9c57d92dfb057b4d9bc77da61453b;p=thirdparty%2Fpdns.git lua-base4: Rename is to stream in loadStream() --- 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();