diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-22 00:30:31 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-22 00:30:31 +0000 |
commit | 69cac65817d949cda2672ec4f0aa73d5e66a0ba1 (patch) | |
tree | 073fde0496ea90eb5bf5cffe66a8da43a9f55fbc /filesharing/advanced/nfs/nfsentry.cpp | |
parent | 3467e6464beac3a162839bf7078e22e3a74d73e7 (diff) | |
download | tdenetwork-69cac65817d949cda2672ec4f0aa73d5e66a0ba1.tar.gz tdenetwork-69cac65817d949cda2672ec4f0aa73d5e66a0ba1.zip |
TQt4 port kdenetwork
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1237912 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'filesharing/advanced/nfs/nfsentry.cpp')
-rw-r--r-- | filesharing/advanced/nfs/nfsentry.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/filesharing/advanced/nfs/nfsentry.cpp b/filesharing/advanced/nfs/nfsentry.cpp index 207e0eae..8c71053d 100644 --- a/filesharing/advanced/nfs/nfsentry.cpp +++ b/filesharing/advanced/nfs/nfsentry.cpp @@ -27,8 +27,8 @@ NFSHost::NFSHost(const TQString & hostString) TQString s = hostString; - int l = s.find('('); - int r = s.find(')'); + int l = s.tqfind('('); + int r = s.tqfind(')'); initParams(); @@ -90,7 +90,7 @@ void NFSHost::parseParamsString(const TQString & s) do { - i = rest.find(",",0); + i = rest.tqfind(",",0); if (i==-1) p = rest; @@ -125,10 +125,10 @@ TQString NFSHost::paramString() const if (!hide) s+="nohide,"; if (anongid!=65534) - s+=TQString("anongid=%1,").arg(anongid); + s+=TQString("anongid=%1,").tqarg(anongid); if (anonuid!=65534) - s+=TQString("anonuid=%1,").arg(anonuid); + s+=TQString("anonuid=%1,").tqarg(anonuid); // get rid of the last ',' s.truncate(s.length()-1); @@ -251,7 +251,7 @@ void NFSHost::setParam(const TQString & s) rootSquash = false; return; } - int i = p.find("=",0); + int i = p.tqfind("=",0); // get anongid or anonuid if (i>-1) @@ -306,7 +306,7 @@ TQString NFSEntry::toString() const { TQString s = _path.stripWhiteSpace(); - if (_path.find(' ') > -1) { + if (_path.tqfind(' ') > -1) { s = '"'+s+'"'; } @@ -360,7 +360,7 @@ NFSHost* NFSEntry::getPublicHost() const if (result) return result; - return getHostByName(TQString::null); + return getHostByName(TQString()); } |