Правки анализаторов

This commit is contained in:
2020-04-04 09:31:38 +03:00
parent e09a7f4e3e
commit 6e43742b2c
8 changed files with 32 additions and 30 deletions

View File

@ -2,8 +2,9 @@
#include <myx/filesystem/current_executable.hpp>
#include <paths.h>
#include <QString>
#include <QCoreApplication>
#include <QString>
namespace myx {

View File

@ -3,17 +3,15 @@
#include <myx/filesystem/paths.hpp>
#include <paths.h>
#include <QString>
#include <QCoreApplication>
#include <QString>
namespace myx {
namespace filesystem {
Paths::Paths()
{
}
Paths::Paths() = default;
Paths::HierarchyType Paths::getHierarchyType()
{

View File

@ -83,8 +83,8 @@ class Paths
HierarchyType getHierarchyType();
static std::atomic< Paths* > m_instance;
static std::mutex m_mutex;
static std::atomic< Paths* > mInstance;
static std::mutex mMutex;
public:
/**
@ -93,15 +93,15 @@ public:
*/
static Paths* getInstance()
{
Paths* localInstance = m_instance.load( std::memory_order_acquire );
Paths* localInstance = mInstance.load( std::memory_order_acquire );
if ( !localInstance )
{
std::lock_guard< std::mutex > myLock( m_mutex );
localInstance = m_instance.load( std::memory_order_relaxed );
std::lock_guard< std::mutex > myLock( mMutex );
localInstance = mInstance.load( std::memory_order_relaxed );
if ( !localInstance )
{
localInstance = new Paths();
m_instance.store( localInstance, std::memory_order_release );
mInstance.store( localInstance, std::memory_order_release );
}
}
return( localInstance );

View File

@ -1,5 +1,5 @@
#include <myx/math/float_cmp_types.hpp>
#include <myx/math/almost_equal_ulps.hpp>
#include <myx/math/float_cmp_types.hpp>
#include <cmath>

View File

@ -1,5 +1,5 @@
#include <myx/math/float_cmp_types.hpp>
#include <myx/math/almost_equal_ulps_and_abs.hpp>
#include <myx/math/float_cmp_types.hpp>
#include <cmath>

View File

@ -1,9 +1,10 @@
#include <myx/base/config.hpp>
#include "translators.hpp"
#include <myx/base/config.hpp>
#include <QCoreApplication>
#include <QLocale>
#include <QLibraryInfo>
#include <QLocale>
namespace myx {