Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Donald Haase
Cockatrice
Commits
7c1ca629
Commit
7c1ca629
authored
Jun 03, 2012
by
Max-Wilhelm Bruker
Browse files
cleaned up remoteclient.cpp compiler warnings
parent
25b97d1e
Changes
1
Hide whitespace changes
Inline
Side-by-side
cockatrice/src/remoteclient.cpp
View file @
7c1ca629
...
...
@@ -136,7 +136,7 @@ void RemoteClient::readData()
ServerMessage
newServerMessage
;
newServerMessage
.
ParseFromArray
(
inputBuffer
.
data
(),
messageLength
);
#ifdef QT_DEBUG
qDebug
(
(
"IN
"
+
QString
::
number
(
messageLength
)
+
": "
+
QString
::
fromStdString
(
newServerMessage
.
ShortDebugString
())
).
toUtf8
())
;
qDebug
(
)
<<
"IN"
<<
messageLength
<<
QString
::
fromStdString
(
newServerMessage
.
ShortDebugString
());
#endif
inputBuffer
.
remove
(
0
,
messageLength
);
messageInProgress
=
false
;
...
...
@@ -153,7 +153,7 @@ void RemoteClient::sendCommandContainer(const CommandContainer &cont)
QByteArray
buf
;
unsigned
int
size
=
cont
.
ByteSize
();
#ifdef QT_DEBUG
qDebug
(
(
"OUT
"
+
QString
::
number
(
size
)
+
": "
+
QString
::
fromStdString
(
cont
.
ShortDebugString
())
).
toUtf8
())
;
qDebug
(
)
<<
"OUT"
<<
size
<<
QString
::
fromStdString
(
cont
.
ShortDebugString
());
#endif
buf
.
resize
(
size
+
4
);
cont
.
SerializeToArray
(
buf
.
data
()
+
4
,
size
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment