mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-30 17:10:19 -05:00
Fixes by clang-tidy
This commit is contained in:
1 parent
df965a4a16
commit
a70a094caf
3 files changed
+11
-11
No files matched your search
@@ -31,7 +31,6 @@
|
||||
#include "RiaImportEclipseCaseTools.h"
|
||||
#include "RiaLogging.h"
|
||||
#include "RiaOpenMPTools.h"
|
||||
#include "RiaToCafLogging.h"
|
||||
#include "RiaPlotWindowRedrawScheduler.h"
|
||||
#include "RiaPreferences.h"
|
||||
#include "RiaPreferencesOsdu.h"
|
||||
@@ -41,6 +40,7 @@
|
||||
#include "RiaRegressionTestRunner.h"
|
||||
#include "RiaSocketServer.h"
|
||||
#include "RiaTextStringTools.h"
|
||||
#include "RiaToCafLogging.h"
|
||||
#include "RiaVersionInfo.h"
|
||||
#include "RiaViewRedrawScheduler.h"
|
||||
#include "RiaWellNameComparer.h"
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
// Static member definitions
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
std::shared_ptr<RiaToCafLoggingBridge> RiaToCafLoggingBridge::s_instance;
|
||||
bool RiaCafLoggingManager::s_isInitialized = false;
|
||||
bool RiaCafLoggingManager::s_isInitialized = false;
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
@@ -91,7 +91,7 @@ void RiaToCafLoggingBridge::registerWithCafLogging()
|
||||
{
|
||||
s_instance = std::make_shared<RiaToCafLoggingBridge>();
|
||||
}
|
||||
|
||||
|
||||
caf::PdmLogging::registerLogger( s_instance );
|
||||
}
|
||||
|
||||
@@ -124,7 +124,7 @@ void RiaCafLoggingManager::initializeCafLogging()
|
||||
{
|
||||
RiaToCafLoggingBridge::registerWithCafLogging();
|
||||
s_isInitialized = true;
|
||||
|
||||
|
||||
// Log initialization success
|
||||
RiaLogging::info( "CAF logging bridge initialized successfully" );
|
||||
}
|
||||
@@ -139,7 +139,7 @@ void RiaCafLoggingManager::shutdownCafLogging()
|
||||
{
|
||||
RiaToCafLoggingBridge::unregisterFromCafLogging();
|
||||
s_isInitialized = false;
|
||||
|
||||
|
||||
// Log shutdown
|
||||
RiaLogging::info( "CAF logging bridge shut down" );
|
||||
}
|
||||
|
||||
@@ -43,12 +43,12 @@ public:
|
||||
void debug( const QString& message ) override;
|
||||
|
||||
// Static utility methods for easy integration
|
||||
static void registerWithCafLogging();
|
||||
static void unregisterFromCafLogging();
|
||||
static void registerWithCafLogging();
|
||||
static void unregisterFromCafLogging();
|
||||
static std::shared_ptr<RiaToCafLoggingBridge> instance();
|
||||
|
||||
private:
|
||||
int m_logLevel;
|
||||
int m_logLevel;
|
||||
static std::shared_ptr<RiaToCafLoggingBridge> s_instance;
|
||||
};
|
||||
|
||||
@@ -60,10 +60,10 @@ class RiaCafLoggingManager
|
||||
public:
|
||||
/// Initialize CAF logging integration - should be called during application startup
|
||||
static void initializeCafLogging();
|
||||
|
||||
/// Cleanup CAF logging integration - should be called during application shutdown
|
||||
|
||||
/// Cleanup CAF logging integration - should be called during application shutdown
|
||||
static void shutdownCafLogging();
|
||||
|
||||
|
||||
/// Check if CAF logging is currently active
|
||||
static bool isCafLoggingActive();
|
||||
|
||||
|
||||
Reference in new issue
Block a user