From 30c6cf311507c9bf7eeb706ea8948c5c81aa1404 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Thu, 24 Nov 2011 14:30:23 -0600 Subject: Fix FTBFS --- src/CMakeLists.txt | 5 +++-- src/kio_locate.cpp | 6 +++--- src/locater.cpp | 4 ++-- 3 files changed, 8 insertions(+), 7 deletions(-) (limited to 'src') diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 6677503..9ebb1d6 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -11,9 +11,10 @@ include_directories( ${TQT_INCLUDE_DIRS} + ${TDE_INCLUDE_DIR} ${CMAKE_BINARY_DIR} - ${CMAKE_BINARY_DIR}/tdecore - ${CMAKE_SOURCE_DIR}/tdecore + ${CMAKE_BINARY_DIR}/src + ${CMAKE_SOURCE_DIR}/src ${CMAKE_SOURCE_DIR}/kio/kio ) 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(); } diff --git a/src/locater.cpp b/src/locater.cpp index 120ec99..a160673 100644 --- a/src/locater.cpp +++ b/src/locater.cpp @@ -57,9 +57,9 @@ void Locater::setupLocate(const TQString& binary, const TQString& additionalArgu // Automatically choose the correct binary if not specified. if (binary.isEmpty()) { - if (KStandardDirs::findExe("slocate")) { + if (!KStandardDirs::findExe("slocate").isNull()) { m_binary = "slocate"; - } else if (KStandardDirs::findExe("rlocate")) { + } else if (!KStandardDirs::findExe("rlocate").isNull()) { m_binary = "rlocate"; } else { m_binary = "locate"; -- cgit v1.2.3