GH #1050 Redis: fix gcc -Wshadow warnings

This commit is contained in:
Miklos Vajna
2016-03-18 14:15:55 +01:00
parent aec9e25d79
commit e19ee5d6b9
4 changed files with 11 additions and 11 deletions

View File

@@ -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()

View File

@@ -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