summaryrefslogtreecommitdiffstats
path: root/cervisia/tooltip.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cervisia/tooltip.cpp')
-rw-r--r--cervisia/tooltip.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/cervisia/tooltip.cpp b/cervisia/tooltip.cpp
index 728945ca..df3c4977 100644
--- a/cervisia/tooltip.cpp
+++ b/cervisia/tooltip.cpp
@@ -72,12 +72,12 @@ TQString truncateLines(const TQString& text,
if (numberOfLines <= maxNumberOfLines)
return text;
- const TQChar* unicode(text.unicode());
- for (int count(maxNumberOfLines); count; ++unicode)
- if (*unicode == newLine)
+ const TQChar* tqunicode(text.tqunicode());
+ for (int count(maxNumberOfLines); count; ++tqunicode)
+ if (*tqunicode == newLine)
--count;
- return text.left(unicode - text.unicode() - 1);
+ return text.left(tqunicode - text.tqunicode() - 1);
}