diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 06:08:18 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 06:08:18 +0000 |
commit | 6335dc55802871b5a43492f217b6edbb420204c4 (patch) | |
tree | 50c6c8672a52687568edea475614dfe3d98e62e5 /kjots/kjotsentry.cpp | |
parent | 9b8c9f1f9e974ff0176108cfbd8852cd99ea68c8 (diff) | |
download | tdeutils-6335dc55802871b5a43492f217b6edbb420204c4.tar.gz tdeutils-6335dc55802871b5a43492f217b6edbb420204c4.zip |
rename the following methods:
tqfind find
tqreplace replace
tqcontains contains
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeutils@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kjots/kjotsentry.cpp')
-rw-r--r-- | kjots/kjotsentry.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/kjots/kjotsentry.cpp b/kjots/kjotsentry.cpp index 34c1ca0..e2d9d58 100644 --- a/kjots/kjotsentry.cpp +++ b/kjots/kjotsentry.cpp @@ -46,9 +46,9 @@ // helper functions for HTML output TQString prepForHTML(TQString text) { - text.tqreplace("<", "<"); - text.tqreplace(">", ">"); - text.tqreplace("\n", "<br>"); + text.replace("<", "<"); + text.replace(">", ">"); + text.replace("\n", "<br>"); return text; } @@ -428,7 +428,7 @@ bool KJotsBook::loadOldBook(TQFile &file) int pos = 0; - while ((pos = buf.tqfind('\\',pos)) != -1) + while ((pos = buf.find('\\',pos)) != -1) if (buf[++pos] == '\\') buf.remove(pos, 1 ); @@ -1125,8 +1125,8 @@ bool KJotsPage::isDirty() TQDomElement text = doc.createElement( "Text" ); TQString saveText = body(); - if ( saveText.tqcontains("]]>") ) { - saveText.tqreplace("]]>","]]>"); + if ( saveText.contains("]]>") ) { + saveText.replace("]]>","]]>"); text.setAttribute("fixed", "1"); } text.appendChild( doc.createCDATASection( saveText )); @@ -1153,7 +1153,7 @@ void KJotsPage::parseXml( TQDomElement &me ) TQString bodyText = e.text(); if ( e.hasAttribute("fixed") ) { - bodyText.tqreplace("]]>", "]]>"); + bodyText.replace("]]>", "]]>"); } setBody(bodyText); } |