summaryrefslogtreecommitdiffstats
path: root/kresources/blogging
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 06:08:18 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 06:08:18 +0000
commit4c6f8d69e2d1501837affb472c4eb8fec4462240 (patch)
tree766a8ad7939fcf3eec534184c36bd0e0f80489e2 /kresources/blogging
parent469cc56a805bd3d6940d54adbef554877c29853c (diff)
downloadtdepim-4c6f8d69e2d1501837affb472c4eb8fec4462240.tar.gz
tdepim-4c6f8d69e2d1501837affb472c4eb8fec4462240.zip
rename the following methods:
tqfind find tqreplace replace tqcontains contains git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kresources/blogging')
-rw-r--r--kresources/blogging/API_Blogger.cpp8
-rw-r--r--kresources/blogging/xmlrpcjob.cpp2
2 files changed, 5 insertions, 5 deletions
diff --git a/kresources/blogging/API_Blogger.cpp b/kresources/blogging/API_Blogger.cpp
index c5e3c4a62..5cdeec257 100644
--- a/kresources/blogging/API_Blogger.cpp
+++ b/kresources/blogging/API_Blogger.cpp
@@ -299,8 +299,8 @@ bool APIBlogger::readPostingFromMap( BlogPosting *post, const TQMap<TQString, TQ
TQString titleTagOpen = mTemplate.titleTagOpen();
TQString titleTagClose = mTemplate.titleTagClose();
- int catStart = contents.tqfind( catTagOpen, 0, false ) + catTagOpen.length();
- int catEnd = contents.tqfind( catTagClose, 0, false );
+ int catStart = contents.find( catTagOpen, 0, false ) + catTagOpen.length();
+ int catEnd = contents.find( catTagClose, 0, false );
kdDebug() << " catTagOpen = " << catTagOpen << ", catTagClose = " << catTagClose << ", start - end : " << catStart <<" - " << catEnd << endl;
if ( catEnd > catStart ) {
category = contents.mid( catStart, catEnd - catStart );
@@ -308,8 +308,8 @@ kdDebug() << " catTagOpen = " << catTagOpen << ", catTagClose = " << catTagClos
contents = contents.remove( catStart - catTagOpen.length(),
catEnd - catStart + catTagClose.length() + catTagOpen.length() );
}
- int titleStart = contents.tqfind( titleTagOpen, 0, false ) + titleTagOpen.length();
- int titleEnd = contents.tqfind( titleTagClose, 0, false );
+ int titleStart = contents.find( titleTagOpen, 0, false ) + titleTagOpen.length();
+ int titleEnd = contents.find( titleTagClose, 0, false );
kdDebug() << " titleTagOpen = " << titleTagOpen << ", titleTagClose = " << titleTagClose << ", start - end : " << titleStart <<" - " << titleEnd << endl;
kdDebug() << "Title start and end: " << titleStart << ", " << titleEnd << endl;
if ( titleEnd > titleStart ) {
diff --git a/kresources/blogging/xmlrpcjob.cpp b/kresources/blogging/xmlrpcjob.cpp
index f20dff875..9a89cf5ab 100644
--- a/kresources/blogging/xmlrpcjob.cpp
+++ b/kresources/blogging/xmlrpcjob.cpp
@@ -337,7 +337,7 @@ kdDebug()<<"Demarshalling element \"" << elem.text() <<"\"" << endl;
else if ( typeName == "datetime" || typeName == "datetime.iso8601" ) {
TQString text( typeElement.text() );
- if ( text.tqfind( TQRegExp("^[0-9]{8,8}T") ) >= 0 ) {
+ if ( text.find( TQRegExp("^[0-9]{8,8}T") ) >= 0 ) {
// It's in the format 20041120T...., so adjust it to correct
// ISO 8601 Format 2004-11-20T..., else TQDateTime::fromString won't work:
text = text.insert( 6, '-' );