mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-24 09:12:28 +02:00
GH #1050 Redis: fix gcc -Wshadow warnings
This commit is contained in:
@@ -123,14 +123,14 @@ void Client::disconnect()
|
||||
_socket.close();
|
||||
}
|
||||
|
||||
void Client::writeCommand(const Array& command, bool flush)
|
||||
void Client::writeCommand(const Array& command, bool doFlush)
|
||||
{
|
||||
poco_assert(_output);
|
||||
|
||||
std::string commandStr = command.toString();
|
||||
|
||||
_output->write(commandStr.c_str(), commandStr.length());
|
||||
if ( flush ) _output->flush();
|
||||
if ( doFlush ) _output->flush();
|
||||
}
|
||||
|
||||
RedisType::Ptr Client::readReply()
|
||||
|
||||
@@ -20,16 +20,16 @@
|
||||
namespace Poco {
|
||||
namespace Redis {
|
||||
|
||||
RedisEventArgs::RedisEventArgs(RedisType::Ptr message) :
|
||||
_message(message),
|
||||
RedisEventArgs::RedisEventArgs(RedisType::Ptr pMessage) :
|
||||
_message(pMessage),
|
||||
_exception(0),
|
||||
_stop(false)
|
||||
{
|
||||
}
|
||||
|
||||
RedisEventArgs::RedisEventArgs(Exception* exception) :
|
||||
RedisEventArgs::RedisEventArgs(Exception* pException) :
|
||||
_message(),
|
||||
_exception(exception ? exception->clone() : 0),
|
||||
_exception(pException ? pException->clone() : 0),
|
||||
_stop(false)
|
||||
{
|
||||
}
|
||||
@@ -40,4 +40,4 @@ RedisEventArgs::~RedisEventArgs()
|
||||
}
|
||||
|
||||
|
||||
}} // namespace Poco::Redis
|
||||
}} // namespace Poco::Redis
|
||||
|
||||
Reference in New Issue
Block a user