summaryrefslogtreecommitdiffstats
path: root/ktouch/src/ktouchlecture.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ktouch/src/ktouchlecture.cpp')
-rw-r--r--ktouch/src/ktouchlecture.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/ktouch/src/ktouchlecture.cpp b/ktouch/src/ktouchlecture.cpp
index 5f5d57de..1f3b687b 100644
--- a/ktouch/src/ktouchlecture.cpp
+++ b/ktouch/src/ktouchlecture.cpp
@@ -122,16 +122,16 @@ bool KTouchLecture::readLecture(TQTextStream& in) {
m_lectureData.clear();
// now loop until end of file is reached and break down the textfile into several strings containing the levels
TQStringList slist;
- TQString current_level = TQString::null; // used to store the current level data
+ TQString current_level = TQString(); // used to store the current level data
line = in.readLine();
bool in_level = false;
while (!in.atEnd() && !line.isNull()) {
// only consider non-empty lines
if (!line.isEmpty()) {
// lecture title?
- if (line.find("# Title:") == 0)
+ if (line.tqfind("# Title:") == 0)
m_title = line.right(line.length() - 8).stripWhiteSpace();
- else if (line[0]!='#' || line.find("# Comment:")!=-1) {
+ else if (line[0]!='#' || line.tqfind("# Comment:")!=-1) {
// ok, after all those comment lines, we finally found the beginn of a level
in_level = true;
current_level += line + '\n';
@@ -139,7 +139,7 @@ bool KTouchLecture::readLecture(TQTextStream& in) {
else if (in_level) {
// ok, a new comment found, if we were reading a level, store it
slist.append(current_level);
- current_level = TQString::null;
+ current_level = TQString();
in_level = false;
}
}