Правки предупреждений
This commit is contained in:
parent
c5484fa2c9
commit
afcf3b2b6c
@ -1,7 +1,7 @@
|
||||
#include "paths.hpp"
|
||||
|
||||
#include <myx/base/config.hpp>
|
||||
#include "whereami++.h"
|
||||
#include <myx/filesystem/whereami.hpp>
|
||||
|
||||
#include <paths.h>
|
||||
#include <QString>
|
||||
|
@ -10,7 +10,7 @@ namespace {
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <cstdlib>
|
||||
|
||||
#ifndef WAI_NOINLINE
|
||||
#if defined( _MSC_VER )
|
||||
@ -143,10 +143,10 @@ int getModulePath( char* out, int capacity, int* dirname_length )
|
||||
uint64_t addr = reinterpret_cast< uintptr_t >( WAI_RETURN_ADDRESS() );
|
||||
if ( ( low <= addr ) && ( addr <= high ) )
|
||||
{
|
||||
char* resolved;
|
||||
char* resolved = nullptr;
|
||||
|
||||
resolved = realpath( path, buffer );
|
||||
if ( !resolved )
|
||||
if ( resolved == nullptr )
|
||||
{
|
||||
break;
|
||||
}
|
||||
@ -185,7 +185,7 @@ int getModulePath( char* out, int capacity, int* dirname_length )
|
||||
}
|
||||
}
|
||||
|
||||
if ( maps )
|
||||
if ( maps != nullptr )
|
||||
{
|
||||
fclose( maps );
|
||||
}
|
@ -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" ) ) )
|
||||
|
Loading…
Reference in New Issue
Block a user