Rename Save* to Store* in TracyUserData.

This commit is contained in:
Bartosz Taudul
2026-06-02 01:00:31 +02:00
parent 5c75032cad
commit 98b61e0096
3 changed files with 9 additions and 9 deletions

View File

@@ -123,7 +123,7 @@ void UserData::LoadState( ViewData& data )
}
}
void UserData::SaveState( const ViewData& data )
void UserData::StoreState( const ViewData& data )
{
if( !m_preserveState ) return;
assert( Valid() );
@@ -211,7 +211,7 @@ void UserData::LoadAnnotations( std::vector<std::unique_ptr<Annotation>>& data )
}
}
void UserData::SaveAnnotations( const std::vector<std::unique_ptr<Annotation>>& data )
void UserData::StoreAnnotations( const std::vector<std::unique_ptr<Annotation>>& data )
{
if( !m_preserveState ) return;
if( data.empty() )
@@ -282,7 +282,7 @@ void UserData::LoadSourceSubstitutions( std::vector<SourceRegex>& data )
}
}
void UserData::SaveSourceSubstitutions( const std::vector<SourceRegex>& data )
void UserData::StoreSourceSubstitutions( const std::vector<SourceRegex>& data )
{
if( !m_preserveState ) return;
if( data.empty() )

View File

@@ -27,14 +27,14 @@ public:
bool SetDescription( const char* description );
void LoadState( ViewData& data );
void SaveState( const ViewData& data );
void StoreState( const ViewData& data );
void StateShouldBePreserved();
void LoadAnnotations( std::vector<std::unique_ptr<Annotation>>& data );
void SaveAnnotations( const std::vector<std::unique_ptr<Annotation>>& data );
void StoreAnnotations( const std::vector<std::unique_ptr<Annotation>>& data );
void LoadSourceSubstitutions( std::vector<SourceRegex>& data );
void SaveSourceSubstitutions( const std::vector<SourceRegex>& data );
void StoreSourceSubstitutions( const std::vector<SourceRegex>& data );
const char* GetConfigLocation() const;

View File

@@ -116,9 +116,9 @@ View::~View()
{
m_worker.Shutdown();
m_userData.SaveState( m_vd );
m_userData.SaveAnnotations( m_annotations );
m_userData.SaveSourceSubstitutions( m_sourceSubstitutions );
m_userData.StoreState( m_vd );
m_userData.StoreAnnotations( m_annotations );
m_userData.StoreSourceSubstitutions( m_sourceSubstitutions );
if( m_compare.loadThread.joinable() ) m_compare.loadThread.join();
if( m_saveThread.joinable() ) m_saveThread.join();