diff --git a/src/myx/qt/translators.cpp b/src/myx/qt/translators.cpp index 668cdb3..39cf4a8 100644 --- a/src/myx/qt/translators.cpp +++ b/src/myx/qt/translators.cpp @@ -11,7 +11,7 @@ namespace qt { void append_translators( QTranslatorsList& translators, const QString& appName ) { - auto translator = new QTranslator( qApp ); + auto* translator = new QTranslator( qApp ); if ( translator->load( QLocale(), appName, QStringLiteral( "_" ), QStringLiteral( ":/qm" ) ) ) @@ -46,7 +46,7 @@ void append_translators( QTranslatorsList& translators, const QString& appName ) translator->deleteLater(); } - for ( auto i : qAsConst( translators ) ) + for ( auto* i : qAsConst( translators ) ) { qApp->installTranslator( i ); } diff --git a/src/myx/redis/client.cpp b/src/myx/redis/client.cpp index 3315d0b..b1e2ce7 100644 --- a/src/myx/redis/client.cpp +++ b/src/myx/redis/client.cpp @@ -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 ); } diff --git a/src/myx/redis/lexer.cpp b/src/myx/redis/lexer.cpp index 9f4ad43..56c80c0 100644 --- a/src/myx/redis/lexer.cpp +++ b/src/myx/redis/lexer.cpp @@ -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 ); }