diff options
Diffstat (limited to 'lib/pilotDateEntry.cc')
-rw-r--r-- | lib/pilotDateEntry.cc | 14 |
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; } |