summaryrefslogtreecommitdiffstats
path: root/lib/pilotDateEntry.cc
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
commit539a35866f0bac8f00e493654d4a8ec6863726e2 (patch)
tree8991e5472fe88379787cafa85542d94706bd6fa4 /lib/pilotDateEntry.cc
parent45598e35650c5806ecf2d684afeeb0da41c3ff6b (diff)
downloadkpilot-539a35866f0bac8f00e493654d4a8ec6863726e2.tar.gz
kpilot-539a35866f0bac8f00e493654d4a8ec6863726e2.zip
rename the following methods:
tqfind find tqreplace replace tqcontains contains git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kpilot@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'lib/pilotDateEntry.cc')
-rw-r--r--lib/pilotDateEntry.cc14
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/pilotDateEntry.cc b/lib/pilotDateEntry.cc
index 42becf2..4a5fd3d 100644
--- a/lib/pilotDateEntry.cc
+++ b/lib/pilotDateEntry.cc
@@ -416,16 +416,16 @@ void PilotDateEntry::setLocation(const TQString &s)
// per TQString docs, this covers null and 0 length
if( s.isEmpty() )
{
- note.tqreplace(rxp,"");
+ note.replace(rxp,"");
}
else
{
TQString location = "Location: " + s + "\n";
- int pos = note.tqfind(rxp);
+ int pos = note.find(rxp);
if(pos >= 0)
{
- note.tqreplace( rxp, location );
+ note.replace( rxp, location );
}
else
{
@@ -441,14 +441,14 @@ TQString PilotDateEntry::getLocation() const
// one from PilotDateEntry::getNote();
TQString note = Pilot::fromPilot(getNoteP());
TQRegExp rxp = TQRegExp("^[Ll]ocation:[^\n]+\n");
- int pos = note.tqfind(rxp, 0);
+ int pos = note.find(rxp, 0);
if(pos >= 0)
{
TQString location = rxp.capturedTexts().first();
rxp = TQRegExp("^[Ll]ocation:[\\s|\t]*");
- location.tqreplace(rxp,"");
- location.tqreplace("\n", "");
+ location.replace(rxp,"");
+ location.replace("\n", "");
return location;
}
else
@@ -467,7 +467,7 @@ TQString PilotDateEntry::getNote() const
{
TQString note = Pilot::fromPilot(getNoteP());
TQRegExp rxp = TQRegExp("^[Ll]ocation:[^\n]+\n");
- note.tqreplace(rxp, "" );
+ note.replace(rxp, "" );
return note;
}