summaryrefslogtreecommitdiffstats
path: root/lib/util/urlutil.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/util/urlutil.cpp')
-rw-r--r--lib/util/urlutil.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/util/urlutil.cpp b/lib/util/urlutil.cpp
index d3cbc5e3..a31aa789 100644
--- a/lib/util/urlutil.cpp
+++ b/lib/util/urlutil.cpp
@@ -82,22 +82,22 @@ TQString URLUtil::getRelativePath(const TQString& basepath, const TQString& dest
///////////////////////////////////////////////////////////////////////////////
-TQString URLUtil::relativePath(const KURL & tqparent, const KURL & child, uint slashPolicy) {
+TQString URLUtil::relativePath(const KURL & parent, const KURL & child, uint slashPolicy) {
bool slashPrefix = slashPolicy & SLASH_PREFIX;
bool slashSuffix = slashPolicy & SLASH_SUFFIX;
- if (tqparent.equals(child,true))
+ if (parent.equals(child,true))
return slashPrefix ? TQString("/") : TQString("");
- if (!tqparent.isParentOf(child)) return TQString();
+ if (!parent.isParentOf(child)) return TQString();
int a=slashPrefix ? -1 : 1;
int b=slashSuffix ? 1 : -1;
- return child.path(b).mid(tqparent.path(a).length());
+ return child.path(b).mid(parent.path(a).length());
}
///////////////////////////////////////////////////////////////////////////////
-TQString URLUtil::relativePath(const TQString & tqparent, const TQString & child, uint slashPolicy) {
- return relativePath(KURL(tqparent), KURL(child), slashPolicy);
+TQString URLUtil::relativePath(const TQString & parent, const TQString & child, uint slashPolicy) {
+ return relativePath(KURL(parent), KURL(child), slashPolicy);
}
///////////////////////////////////////////////////////////////////////////////