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
44123b9b
Commit
44123b9b
authored
Mar 30, 2016
by
woogerboy21
Browse files
Untabify
Yay! Figured out how to do this in VS2015!
parent
506ad91b
Changes
2
Hide whitespace changes
Inline
Side-by-side
cockatrice/src/remoteclient.cpp
View file @
44123b9b
...
...
@@ -364,8 +364,8 @@ void RemoteClient::disconnectFromServer()
QString
RemoteClient
::
getSrvClientID
(
const
QString
_hostname
)
{
QString
srvClientID
=
settingsCache
->
getClientID
();
srvClientID
+=
_hostname
;
QString
uniqueServerClientID
=
QCryptographicHash
::
hash
(
srvClientID
.
toUtf8
(),
QCryptographicHash
::
Sha1
).
toHex
().
right
(
15
);
return
uniqueServerClientID
;
QString
srvClientID
=
settingsCache
->
getClientID
();
srvClientID
+=
_hostname
;
QString
uniqueServerClientID
=
QCryptographicHash
::
hash
(
srvClientID
.
toUtf8
(),
QCryptographicHash
::
Sha1
).
toHex
().
right
(
15
);
return
uniqueServerClientID
;
}
\ No newline at end of file
cockatrice/src/remoteclient.h
View file @
44123b9b
...
...
@@ -51,7 +51,7 @@ private:
QTcpSocket
*
socket
;
QString
lastHostname
;
int
lastPort
;
QString
getSrvClientID
(
const
QString
_hostname
);
QString
getSrvClientID
(
const
QString
_hostname
);
protected
slots
:
void
sendCommandContainer
(
const
CommandContainer
&
cont
);
public:
...
...
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