From d4da6aa5181d8eedd99a2581cb27a90270269718 Mon Sep 17 00:00:00 2001 From: Tomasz Sowa Date: Mon, 25 Jul 2022 18:36:28 +0200 Subject: [PATCH] let System::PutUrlProto takes a stream by a reference to pt::Stream --- winixd/core/system.cpp | 4 ++-- winixd/core/system.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/winixd/core/system.cpp b/winixd/core/system.cpp index b64f529..c197696 100644 --- a/winixd/core/system.cpp +++ b/winixd/core/system.cpp @@ -229,7 +229,7 @@ void System::PutUrlProto(bool can_use_ssl, std::wstring & str, bool clear_str) /* * try_to_use_ssl is to be meant: config->use_ssl, config->use_ssl_static, config->use_ssl_common */ -void System::PutUrlProto(bool can_use_ssl, pt::TextStream & str, bool clear_stream) +void System::PutUrlProto(bool can_use_ssl, pt::Stream & str, bool clear_stream) { if( clear_stream ) str.clear(); @@ -251,7 +251,7 @@ void System::PutUrlProto(std::wstring & str, bool clear_str) } -void System::PutUrlProto(pt::TextStream & str, bool clear_stream) +void System::PutUrlProto(pt::Stream & str, bool clear_stream) { return PutUrlProto(config->use_ssl, str, clear_stream); } diff --git a/winixd/core/system.h b/winixd/core/system.h index 18a3297..87f84d9 100644 --- a/winixd/core/system.h +++ b/winixd/core/system.h @@ -130,9 +130,9 @@ public: bool IsSSLRequired(bool try_to_use_ssl); bool IsSSLRequired(); void PutUrlProto(bool can_use_ssl, std::wstring & str, bool clear_str = true); - void PutUrlProto(bool can_use_ssl, pt::TextStream & str, bool clear_stream = true); + void PutUrlProto(bool can_use_ssl, pt::Stream & str, bool clear_stream = true); void PutUrlProto(std::wstring & str, bool clear_str = true); - void PutUrlProto(pt::TextStream & str, bool clear_stream = true); + void PutUrlProto(pt::Stream & str, bool clear_stream = true); void RedirectTo(const Item & item, const wchar_t * postfix = 0, bool use_reqtype = true); void RedirectTo(long item_id, const wchar_t * postfix = 0, bool use_reqtype = true);