diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-06-09 12:10:12 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-06-09 12:10:12 +0000 |
commit | 0161215f42ccbfe45d1aef626f830d39486ef699 (patch) | |
tree | 93736dbf74c0e87e31e9d7ed49f2049b01b9ac4e /src/users.cpp | |
parent | 3936814ac6919c7c2dca75fac737a46c30510603 (diff) |
Change some = "" to clear() and some == "" to .empty()
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7263 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/users.cpp')
-rw-r--r-- | src/users.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/users.cpp b/src/users.cpp index 2e3bc83d5..7e0851f59 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -330,9 +330,9 @@ userrec::userrec(InspIRCd* Instance) : ServerInstance(Instance) ChannelCount = timeout = flood = bytes_in = bytes_out = cmds_in = cmds_out = 0; muted = exempt = haspassed = dns_done = false; fd = -1; - recvq = ""; - sendq = ""; - WriteError = ""; + recvq.clear(); + sendq.clear(); + WriteError.clear(); res_forward = res_reverse = NULL; Visibility = NULL; ip = NULL; @@ -632,7 +632,7 @@ bool userrec::BufferIsReady() void userrec::ClearBuffer() { - recvq = ""; + recvq.clear(); } std::string userrec::GetBuffer() @@ -713,7 +713,7 @@ void userrec::FlushWriteBuf() { if ((this->fd == FD_MAGIC_NUMBER) || (*this->GetWriteError())) { - sendq = ""; + sendq.clear(); } if ((sendq.length()) && (this->fd != FD_MAGIC_NUMBER)) { |