summaryrefslogtreecommitdiffstats
path: root/conduits/memofileconduit/memofiles.cc
diff options
context:
space:
mode:
Diffstat (limited to 'conduits/memofileconduit/memofiles.cc')
-rw-r--r--conduits/memofileconduit/memofiles.cc18
1 files changed, 9 insertions, 9 deletions
diff --git a/conduits/memofileconduit/memofiles.cc b/conduits/memofileconduit/memofiles.cc
index c8ce67b..db3d8ca 100644
--- a/conduits/memofileconduit/memofiles.cc
+++ b/conduits/memofileconduit/memofiles.cc
@@ -89,7 +89,7 @@ void Memofiles::load (bool loadAll)
// DEBUGKPILOT << fname
// << ": checking category: [" << categoryName
// << "], file: [" << file << "]." << endl;
- Memofile * memofile = tqfind(categoryName, file);
+ Memofile * memofile = find(categoryName, file);
if (NULL == memofile) {
memofile = new Memofile(category, categoryName, file, _baseDirectory);
memofile->setModified(true);
@@ -316,7 +316,7 @@ bool Memofiles::loadFromMetadata ()
return true;
}
-Memofile * Memofiles::tqfind (recordid_t id)
+Memofile * Memofiles::find (recordid_t id)
{
Memofile * memofile;
@@ -331,7 +331,7 @@ Memofile * Memofiles::tqfind (recordid_t id)
}
-Memofile * Memofiles::tqfind (const TQString & category, const TQString & filename)
+Memofile * Memofiles::find (const TQString & category, const TQString & filename)
{
Memofile * memofile;
@@ -353,7 +353,7 @@ void Memofiles::deleteMemo(PilotMemo * memo)
if (! memo->isDeleted())
return;
- Memofile * memofile = tqfind(memo->id());
+ Memofile * memofile = find(memo->id());
if (memofile) {
memofile->deleteFile();
_memofiles.remove(memofile);
@@ -375,7 +375,7 @@ void Memofiles::addModifiedMemo (PilotMemo * memo)
+ TQString::number(memo->id()) + CSL1("], title: [")
+ memo->getTitle() + CSL1("]. ");
- Memofile * memofile = tqfind(memo->id());
+ Memofile * memofile = find(memo->id());
if (NULL == memofile) {
_cudCounter.created();
@@ -653,7 +653,7 @@ TQString Memofiles::filename(PilotMemo * memo)
if (filename.isEmpty()) {
TQString text = memo->text();
- int i = text.tqfind(CSL1("\n"));
+ int i = text.find(CSL1("\n"));
if (i > 1) {
filename = text.left(i);
}
@@ -666,7 +666,7 @@ TQString Memofiles::filename(PilotMemo * memo)
TQString category = _categories[memo->category()];
- Memofile * memofile = tqfind(category, filename);
+ Memofile * memofile = find(category, filename);
// if we couldn't find a memofile with this filename, or if the
// memofile that is found is the same as the memo that we're looking
@@ -683,7 +683,7 @@ TQString Memofiles::filename(PilotMemo * memo)
// for trouble.
while (NULL != memofile && uniq <=20) {
newfilename = TQString(filename + CSL1(".") + TQString::number(uniq++) );
- memofile = tqfind(category, newfilename);
+ memofile = find(category, newfilename);
}
return newfilename;
@@ -694,7 +694,7 @@ TQString Memofiles::sanitizeName(TQString name)
TQString clean = name;
// safety net. we can't save a
// filesystem separator as part of a filename, now can we?
- clean.tqreplace('/', CSL1("-"));
+ clean.replace('/', CSL1("-"));
return clean;
}