Skip to content

Commit b2fe6b7

Browse files
committed
Make BytesWaiting const
1 parent 340b0e1 commit b2fe6b7

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

libs/network/include/s25util/Socket.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ class Socket
158158
bool operator>(const Socket& sock) const;
159159

160160
/// prüft auf wartende Bytes.
161-
int BytesWaiting();
161+
int BytesWaiting() const;
162162

163163
/// prüft auf wartende Bytes.
164164
int BytesWaiting(unsigned* received) const;

libs/network/src/Socket.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -751,7 +751,7 @@ bool Socket::operator>(const Socket& sock) const
751751
*
752752
* @return liefert die Menge der wartenden Bytes
753753
*/
754-
int Socket::BytesWaiting()
754+
int Socket::BytesWaiting() const
755755
{
756756
unsigned received;
757757
if(BytesWaiting(&received) != 0)

0 commit comments

Comments
 (0)