summaryrefslogtreecommitdiffstats
path: root/libemailfunctions
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2019-06-01 17:18:13 +0900
committerMichele Calgaro <[email protected]>2019-06-01 17:18:13 +0900
commit6d2f3127be206390c4c576fc174ad6edeb020dfe (patch)
treeca430a49349b46c7e556a2c6cb140730a3b00b46 /libemailfunctions
parent2852e8272a186108d3c8b2bc133e67fd8624e99c (diff)
downloadtdepim-6d2f3127be206390c4c576fc174ad6edeb020dfe.tar.gz
tdepim-6d2f3127be206390c4c576fc174ad6edeb020dfe.zip
Adjusted to use new TQStringVariantMap type.
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'libemailfunctions')
-rw-r--r--libemailfunctions/idmapper.cpp12
-rw-r--r--libemailfunctions/idmapper.h2
2 files changed, 7 insertions, 7 deletions
diff --git a/libemailfunctions/idmapper.cpp b/libemailfunctions/idmapper.cpp
index 296b3af61..34bcf6cc0 100644
--- a/libemailfunctions/idmapper.cpp
+++ b/libemailfunctions/idmapper.cpp
@@ -95,7 +95,7 @@ bool IdMapper::save()
TQString content;
- TQMap<TQString, TQVariant>::Iterator it;
+ TQStringVariantMap::Iterator it;
for ( it = mIdMap.begin(); it != mIdMap.end(); ++it ) {
TQString fingerprint( "" );
if ( mFingerprintMap.contains( it.key() ) )
@@ -122,7 +122,7 @@ void IdMapper::setRemoteId( const TQString &localId, const TQString &remoteId )
void IdMapper::removeRemoteId( const TQString &remoteId )
{
- TQMap<TQString, TQVariant>::Iterator it;
+ TQStringVariantMap::Iterator it;
for ( it = mIdMap.begin(); it != mIdMap.end(); ++it )
if ( it.data().toString() == remoteId ) {
mIdMap.remove( it );
@@ -133,7 +133,7 @@ void IdMapper::removeRemoteId( const TQString &remoteId )
TQString IdMapper::remoteId( const TQString &localId ) const
{
- TQMap<TQString, TQVariant>::ConstIterator it;
+ TQStringVariantMap::ConstIterator it;
it = mIdMap.find( localId );
if ( it != mIdMap.end() )
@@ -144,7 +144,7 @@ TQString IdMapper::remoteId( const TQString &localId ) const
TQString IdMapper::localId( const TQString &remoteId ) const
{
- TQMap<TQString, TQVariant>::ConstIterator it;
+ TQStringVariantMap::ConstIterator it;
for ( it = mIdMap.begin(); it != mIdMap.end(); ++it )
if ( it.data().toString() == remoteId )
return it.key();
@@ -156,7 +156,7 @@ TQString IdMapper::asString() const
{
TQString content;
- TQMap<TQString, TQVariant>::ConstIterator it;
+ TQStringVariantMap::ConstIterator it;
for ( it = mIdMap.begin(); it != mIdMap.end(); ++it ) {
TQString fp;
if ( mFingerprintMap.contains( it.key() ) )
@@ -183,7 +183,7 @@ const TQString& IdMapper::fingerprint( const TQString &localId ) const
TQMap<TQString, TQString> IdMapper::remoteIdMap() const
{
TQMap<TQString, TQString> reverseMap;
- TQMap<TQString, TQVariant>::ConstIterator it;
+ TQStringVariantMap::ConstIterator it;
for ( it = mIdMap.begin(); it != mIdMap.end(); ++it ) {
reverseMap.insert( it.data().toString(), it.key() );
}
diff --git a/libemailfunctions/idmapper.h b/libemailfunctions/idmapper.h
index 7c6c98cf2..50075aefb 100644
--- a/libemailfunctions/idmapper.h
+++ b/libemailfunctions/idmapper.h
@@ -147,7 +147,7 @@ class KDE_EXPORT IdMapper
TQString filename();
private:
- TQMap<TQString, TQVariant> mIdMap;
+ TQStringVariantMap mIdMap;
TQMap<TQString, TQString> mFingerprintMap;
TQString mPath;