From: Arvin Schnell Date: Mon, 8 Jul 2024 13:22:09 +0000 (+0200) Subject: - cleanup X-Git-Tag: v0.11.2~3^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cf9d9aafae569e22e288a8d4c517da105c58b41f;p=thirdparty%2Fsnapper.git - cleanup --- diff --git a/zypp-plugin/zypp-plugin.cc b/zypp-plugin/zypp-plugin.cc index b7c67911..b41e57d5 100644 --- a/zypp-plugin/zypp-plugin.cc +++ b/zypp-plugin/zypp-plugin.cc @@ -20,7 +20,6 @@ */ - using namespace std; diff --git a/zypp-plugin/zypp-plugin.h b/zypp-plugin/zypp-plugin.h index ed356178..f01d979b 100644 --- a/zypp-plugin/zypp-plugin.h +++ b/zypp-plugin/zypp-plugin.h @@ -36,11 +36,6 @@ public: // https://doc.opensuse.org/projects/libzypp/SLE12SP2/zypp-plugins.html using Message = Stomp::Message; - /// Where the protocol reads from - std::istream& pin; - /// Where the protocol writes to - std::ostream& pout; - ZyppPlugin(std::istream& in = std::cin, std::ostream& out = std::cout) : pin(in), pout(out) {} @@ -51,6 +46,11 @@ public: protected: + /// Where the protocol reads from + std::istream& pin; + /// Where the protocol writes to + std::ostream& pout; + Message read_message(std::istream& is) const { return Stomp::read_message(is); } void write_message(std::ostream& os, const Message& msg) const { Stomp::write_message(os, msg); }