diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-01-31 00:39:49 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-01-31 00:39:49 -0600 |
commit | 8d6fecdf83984625b9bc6d010a6a00ee670af344 (patch) | |
tree | 3bf8e73ad6d6f029998d9e8eafdf85ee17b89971 /lib/interfaces/hashedstring.cpp | |
parent | 758e85b36d3fafe1b40112032dab28dd3d2fc0e5 (diff) | |
download | tdevelop-8d6fecdf83984625b9bc6d010a6a00ee670af344.tar.gz tdevelop-8d6fecdf83984625b9bc6d010a6a00ee670af344.zip |
Rename KShared
Diffstat (limited to 'lib/interfaces/hashedstring.cpp')
-rw-r--r-- | lib/interfaces/hashedstring.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/interfaces/hashedstring.cpp b/lib/interfaces/hashedstring.cpp index 8392e271..820dba04 100644 --- a/lib/interfaces/hashedstring.cpp +++ b/lib/interfaces/hashedstring.cpp @@ -60,7 +60,7 @@ void HashedString::initHash() { } -class HashedStringSetData : public KShared { +class HashedStringSetData : public TDEShared { public: #ifdef USE_HASHMAP typedef __gnu_cxx::hash_set<HashedString> StringSet; @@ -121,7 +121,7 @@ HashedStringSet& HashedStringSet::operator +=( const HashedStringSet& rhs ) { return * this; #ifndef USE_HASHMAP - KSharedPtr<HashedStringSetData> oldData = m_data; + TDESharedPtr<HashedStringSetData> oldData = m_data; if( !oldData ) oldData = new HashedStringSetData(); m_data = new HashedStringSetData(); std::set_union( oldData->m_files.begin(), oldData->m_files.end(), rhs.m_data->m_files.begin(), rhs.m_data->m_files.end(), std::insert_iterator<HashedStringSetData::StringSet>( m_data->m_files, m_data->m_files.end() ) ); @@ -142,7 +142,7 @@ HashedStringSet& HashedStringSet::operator -=( const HashedStringSet& rhs ) { if( !m_data ) return *this; if( !rhs.m_data ) return *this; #ifndef USE_HASHMAP - KSharedPtr<HashedStringSetData> oldData = m_data; + TDESharedPtr<HashedStringSetData> oldData = m_data; m_data = new HashedStringSetData(); std::set_difference( oldData->m_files.begin(), oldData->m_files.end(), rhs.m_data->m_files.begin(), rhs.m_data->m_files.end(), std::insert_iterator<HashedStringSetData::StringSet>( m_data->m_files, m_data->m_files.end() ) ); #else @@ -164,7 +164,7 @@ void HashedStringSet::makeDataPrivate() { m_data = new HashedStringSetData(); return ; } - if ( m_data->_KShared_count() != 1 ) + if ( m_data->_TDEShared_count() != 1 ) m_data = new HashedStringSetData( *m_data ); } |