Чистка кода
This commit is contained in:
@@ -48,7 +48,7 @@ Request* Client::sendCommand( const QByteArray& command )
|
||||
{
|
||||
d->socket.write( command + "\r\n" );
|
||||
|
||||
auto request = new Request( this );
|
||||
auto* request = new Request( this );
|
||||
d->queue.enqueue( request );
|
||||
return( request );
|
||||
}
|
||||
|
@@ -100,7 +100,7 @@ bool Lexer::readUnsafeString()
|
||||
|
||||
bool Lexer::readSafeString()
|
||||
{
|
||||
if ( m_buffer.size() < m_length + 2 )
|
||||
if ( m_buffer.size() - m_length < 2 )
|
||||
{
|
||||
return( false );
|
||||
}
|
||||
|
Reference in New Issue
Block a user