summaryrefslogtreecommitdiffstats
path: root/kresources/egroupware
diff options
context:
space:
mode:
Diffstat (limited to 'kresources/egroupware')
-rw-r--r--kresources/egroupware/debugdialog.cpp6
-rw-r--r--kresources/egroupware/kabc_resourcexmlrpc.cpp8
-rw-r--r--kresources/egroupware/kcal_resourcexmlrpc.cpp8
-rw-r--r--kresources/egroupware/todostatemapper.cpp4
-rw-r--r--kresources/egroupware/xmlrpciface.cpp8
5 files changed, 17 insertions, 17 deletions
diff --git a/kresources/egroupware/debugdialog.cpp b/kresources/egroupware/debugdialog.cpp
index 1660c85e0..57a6479f4 100644
--- a/kresources/egroupware/debugdialog.cpp
+++ b/kresources/egroupware/debugdialog.cpp
@@ -109,9 +109,9 @@ void DebugDialog::slotUser2()
void DebugDialog::addText( const TQString &text, Type type )
{
TQString htmlCode( text );
- htmlCode.tqreplace( "<", "&lt;" );
- htmlCode.tqreplace( ">", "&gt;" );
- htmlCode.tqreplace( "\n", "<br>" );
+ htmlCode.replace( "<", "&lt;" );
+ htmlCode.replace( ">", "&gt;" );
+ htmlCode.replace( "\n", "<br>" );
mMessages.append( text );
if ( type == Input )
diff --git a/kresources/egroupware/kabc_resourcexmlrpc.cpp b/kresources/egroupware/kabc_resourcexmlrpc.cpp
index 2e5053240..a02f568af 100644
--- a/kresources/egroupware/kabc_resourcexmlrpc.cpp
+++ b/kresources/egroupware/kabc_resourcexmlrpc.cpp
@@ -479,7 +479,7 @@ void ResourceXMLRPC::writeContact( const Addressee &addr, TQMap<TQString, TQVari
TQMap<TQString, TQVariant> catMap;
int counter = 0;
for ( catIt = categories.begin(); catIt != categories.end(); ++catIt ) {
- TQMap<TQString, int>::ConstIterator it = mCategoryMap.tqfind( *catIt );
+ TQMap<TQString, int>::ConstIterator it = mCategoryMap.find( *catIt );
if ( it == mCategoryMap.end() ) // new category
catMap.insert( TQString::number( counter-- ), *catIt );
else
@@ -575,9 +575,9 @@ void ResourceXMLRPC::writeContact( const Addressee &addr, TQMap<TQString, TQVari
const TQStringList customFields = addr.customs();
TQStringList::ConstIterator it;
for ( it = customFields.begin(); it != customFields.end(); ++it ) {
- int colon = (*it).tqfind( ":" );
+ int colon = (*it).find( ":" );
TQString identifier = (*it).left( colon );
- int dash = identifier.tqfind( "-" );
+ int dash = identifier.find( "-" );
TQString app = identifier.left( dash );
TQString name = identifier.mid( dash + 1 );
TQString value = (*it).mid( colon + 1 );
@@ -752,7 +752,7 @@ void ResourceXMLRPC::loadCategoriesFinished( const TQValueList<TQVariant> &mapLi
mCategoryMap.insert( it.data().toString(), it.key().toInt() );
TQStringList categories = prefs->customCategories();
- if ( categories.tqfind( it.data().toString() ) == categories.end() )
+ if ( categories.find( it.data().toString() ) == categories.end() )
categories.append( it.data().toString() );
prefs->mCustomCategories = categories;
diff --git a/kresources/egroupware/kcal_resourcexmlrpc.cpp b/kresources/egroupware/kcal_resourcexmlrpc.cpp
index 177ce9def..25f4c1f2d 100644
--- a/kresources/egroupware/kcal_resourcexmlrpc.cpp
+++ b/kresources/egroupware/kcal_resourcexmlrpc.cpp
@@ -651,7 +651,7 @@ void ResourceXMLRPC::loadEventCategoriesFinished( const TQValueList<TQVariant> &
for ( it = map.begin(); it != map.end(); ++it ) {
mEventCategoryMap.insert( it.data().toString(), it.key().toInt() );
- if ( prefs.mCustomCategories.tqfind( it.data().toString() ) == prefs.mCustomCategories.end() )
+ if ( prefs.mCustomCategories.find( it.data().toString() ) == prefs.mCustomCategories.end() )
prefs.mCustomCategories.append( it.data().toString() );
}
@@ -756,7 +756,7 @@ void ResourceXMLRPC::loadTodoCategoriesFinished( const TQValueList<TQVariant> &m
for ( it = map.begin(); it != map.end(); ++it ) {
mTodoCategoryMap.insert( it.data().toString(), it.key().toInt() );
- if ( prefs.mCustomCategories.tqfind( it.data().toString() ) == prefs.mCustomCategories.end() )
+ if ( prefs.mCustomCategories.find( it.data().toString() ) == prefs.mCustomCategories.end() )
prefs.mCustomCategories.append( it.data().toString() );
}
@@ -964,7 +964,7 @@ void ResourceXMLRPC::writeEvent( Event *event, TQMap<TQString, TQVariant> &args
TQMap<TQString, TQVariant> catMap;
int counter = 0;
for ( catIt = categories.begin(); catIt != categories.end(); ++catIt ) {
- TQMap<TQString, int>::Iterator it = mEventCategoryMap.tqfind( *catIt );
+ TQMap<TQString, int>::Iterator it = mEventCategoryMap.find( *catIt );
if ( it == mEventCategoryMap.end() ) // new category
catMap.insert( TQString::number( counter-- ), *catIt );
else
@@ -1099,7 +1099,7 @@ void ResourceXMLRPC::writeTodo( Todo* todo, TQMap<TQString, TQVariant>& args )
TQStringList::ConstIterator catIt;
int counter = 0;
for ( catIt = categories.begin(); catIt != categories.end(); ++catIt ) {
- TQMap<TQString, int>::Iterator it = mTodoCategoryMap.tqfind( *catIt );
+ TQMap<TQString, int>::Iterator it = mTodoCategoryMap.find( *catIt );
if ( it == mTodoCategoryMap.end() )
catMap.insert( TQString::number( counter-- ), *catIt );
else
diff --git a/kresources/egroupware/todostatemapper.cpp b/kresources/egroupware/todostatemapper.cpp
index 2539d23aa..ed87e9db6 100644
--- a/kresources/egroupware/todostatemapper.cpp
+++ b/kresources/egroupware/todostatemapper.cpp
@@ -114,7 +114,7 @@ void TodoStateMapper::addTodoState( const TQString &uid, int localState, const T
TQString TodoStateMapper::remoteState( const TQString &uid, int localState )
{
- if ( mTodoStateMap.tqfind( uid ) == mTodoStateMap.end() )
+ if ( mTodoStateMap.find( uid ) == mTodoStateMap.end() )
kdError() << "TodoStateMapper: no entry for " << uid << " found" << endl;
TodoStateMapEntry entry = mTodoStateMap[ uid ];
@@ -139,7 +139,7 @@ int TodoStateMapper::toLocal( const TQString &remoteState )
return 100;
else {
TQString number( remoteState );
- number.tqreplace( "%", "" );
+ number.replace( "%", "" );
return number.toInt();
}
}
diff --git a/kresources/egroupware/xmlrpciface.cpp b/kresources/egroupware/xmlrpciface.cpp
index 4a46a37eb..59b467bb2 100644
--- a/kresources/egroupware/xmlrpciface.cpp
+++ b/kresources/egroupware/xmlrpciface.cpp
@@ -202,10 +202,10 @@ TQString Query::marshal( const TQVariant &arg ) const
case TQVariant::CString:
{
TQString result = arg.toString();
- result = result.tqreplace( "&", "&amp;" );
- result = result.tqreplace( "\"", "&quot;" );
- result = result.tqreplace( "<", "&lt;" );
- result = result.tqreplace( ">", "&gt;" );
+ result = result.replace( "&", "&amp;" );
+ result = result.replace( "\"", "&quot;" );
+ result = result.replace( "<", "&lt;" );
+ result = result.replace( ">", "&gt;" );
return "<value><string>" + result + "</string></value>\r\n";
}
case TQVariant::Int: