summaryrefslogtreecommitdiffstats
path: root/src/kio_locate.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/kio_locate.cpp')
-rw-r--r--src/kio_locate.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/kio_locate.cpp b/src/kio_locate.cpp
index d213ded..3530af9 100644
--- a/src/kio_locate.cpp
+++ b/src/kio_locate.cpp
@@ -226,7 +226,7 @@ static const UDSEntry pathToUDSEntry(const TQString& path, const TQString& displ
if (S_ISLNK(type)) {
TQString slink = TQString();
char buff[1000];
- int n = readlink(path, buff, 1000);
+ int n = readlink(path.ascii(), buff, 1000);
if (n != -1) {
buff[n] = 0;
slink = buff;
@@ -610,7 +610,7 @@ void LocateProtocol::processLocateOutput(const TQStringList& items)
}
// Go through what we have found.
TQStringList::ConstIterator it = items.begin();
- if (m_pendingPath) {
+ if (!m_pendingPath.isNull()) {
processPath(m_pendingPath, *it);
m_pendingPath = TQString();
}
@@ -625,7 +625,7 @@ void LocateProtocol::processLocateOutput(const TQStringList& items)
void LocateProtocol::locateFinished()
{
// Add any pending items.
- if (m_pendingPath) {
+ if (!m_pendingPath.isNull()) {
processPath(m_pendingPath, "");
m_pendingPath = TQString();
}