From 48d4a26399959121f33d2bc3bfe51c7827b654fc Mon Sep 17 00:00:00 2001 From: tpearson Date: Tue, 14 Jun 2011 16:45:05 +0000 Subject: TQt4 port kdevelop This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1236710 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- lib/util/rurl.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'lib/util/rurl.cpp') diff --git a/lib/util/rurl.cpp b/lib/util/rurl.cpp index 0d631bda..86ca920a 100644 --- a/lib/util/rurl.cpp +++ b/lib/util/rurl.cpp @@ -113,26 +113,26 @@ TQString Name::extension( bool complete ) const { TQString temp = fileName(); if (complete) - return temp.mid(temp.find('.')+1); + return temp.mid(temp.tqfind('.')+1); else - return temp.mid(temp.findRev('.')+1); + return temp.mid(temp.tqfindRev('.')+1); } - return TQString::null; + return TQString(); } TQString Name::fileName( ) const { if (m_type == File) return m_rurl.section('/', -1); - return TQString::null; + return TQString(); } TQString Name::directory( ) const { - if ( (m_type == File) && (m_rurl.findRev('/') == -1) ) - return TQString::null; + if ( (m_type == File) && (m_rurl.tqfindRev('/') == -1) ) + return TQString(); - return m_rurl.mid(0, m_rurl.findRev('/')+1); + return m_rurl.mid(0, m_rurl.tqfindRev('/')+1); } bool Name::isFile( ) const @@ -159,7 +159,7 @@ bool Name::isValid( ) const { if (m_rurl.startsWith("/")) return false; - if (m_rurl.contains("//")) + if (m_rurl.tqcontains("//")) return false; if ( (m_rurl.endsWith("/")) && (m_type == File) ) return false; -- cgit v1.2.1