summaryrefslogtreecommitdiffstats
path: root/tdecore/network/ksocketaddress.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tdecore/network/ksocketaddress.cpp')
-rw-r--r--tdecore/network/ksocketaddress.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/tdecore/network/ksocketaddress.cpp b/tdecore/network/ksocketaddress.cpp
index dccac12bd..7ceeba99d 100644
--- a/tdecore/network/ksocketaddress.cpp
+++ b/tdecore/network/ksocketaddress.cpp
@@ -270,7 +270,7 @@ public:
{
addr.generic = 0L;
curlen = 0;
- tqinvalidate();
+ invalidate();
}
~KSocketAddressData()
@@ -282,7 +282,7 @@ public:
inline bool invalid() const
{ return reallen == 0; }
- inline void tqinvalidate()
+ inline void invalidate()
{ reallen = 0; }
void dup(const sockaddr* sa, TQ_UINT16 len, bool clear = true);
@@ -348,7 +348,7 @@ void KSocketAddressData::dup(const sockaddr* sa, TQ_UINT16 len, bool clear)
if (len < MIN_SOCKADDR_LEN)
{
// certainly invalid
- tqinvalidate();
+ invalidate();
return;
}
@@ -359,7 +359,7 @@ void KSocketAddressData::dup(const sockaddr* sa, TQ_UINT16 len, bool clear)
(sa->sa_family == AF_UNIX && len < MIN_SOCKADDR_UN_LEN)))
{
// also invalid
- tqinvalidate();
+ invalidate();
return;
}
@@ -444,7 +444,7 @@ KSocketAddress& KSocketAddress::operator =(const KSocketAddress& other)
if (other.d && !other.d->invalid())
d->dup(other.d->addr.generic, other.d->reallen);
else
- d->tqinvalidate();
+ d->invalidate();
return *this;
}
@@ -467,7 +467,7 @@ KSocketAddress& KSocketAddress::setAddress(const sockaddr* sa, TQ_UINT16 len)
if (sa != 0L && len >= MIN_SOCKADDR_LEN)
d->dup(sa, len);
else
- d->tqinvalidate();
+ d->invalidate();
return *this;
}
@@ -788,7 +788,7 @@ KInetSocketAddress& KInetSocketAddress::setHost(const KIpAddress& ip)
default:
// empty
- d->tqinvalidate();
+ d->invalidate();
}
return *this;
@@ -832,7 +832,7 @@ KInetSocketAddress& KInetSocketAddress::setPort(TQ_UINT16 port)
#endif
default:
- d->tqinvalidate(); // setting the port on something else
+ d->invalidate(); // setting the port on something else
}
return *this;
@@ -897,7 +897,7 @@ void KInetSocketAddress::update()
return;
#endif
else
- d->tqinvalidate();
+ d->invalidate();
}
KUnixSocketAddress::KUnixSocketAddress()
@@ -908,7 +908,7 @@ KUnixSocketAddress::KUnixSocketAddress(const sockaddr* sa, TQ_UINT16 len)
: KSocketAddress(sa, len)
{
if (!d->invalid() && d->addr.un->sun_family != AF_UNIX)
- d->tqinvalidate();
+ d->invalidate();
}
KUnixSocketAddress::KUnixSocketAddress(const KUnixSocketAddress& other)