mirror of
https://github.com/wolfpld/tracy.git
synced 2026-06-08 00:23:47 +00:00
Rename Save* to Store* in TracyUserData.
This commit is contained in:
@@ -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() )
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user