projects
/
quassel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #97 from Bombe/focus-host-input
[quassel.git]
/
src
/
common
/
identity.cpp
diff --git
a/src/common/identity.cpp
b/src/common/identity.cpp
index
b718110
..
b370c58
100644
(file)
--- a/
src/common/identity.cpp
+++ b/
src/common/identity.cpp
@@
-1,5
+1,5
@@
/***************************************************************************
/***************************************************************************
- * Copyright (C) 2005-201
2
by the Quassel Project *
+ * Copyright (C) 2005-201
5
by the Quassel Project *
* devel@quassel-irc.org *
* *
* This program is free software; you can redistribute it and/or modify *
* devel@quassel-irc.org *
* *
* This program is free software; you can redistribute it and/or modify *
@@
-35,7
+35,7
@@
# include <unistd.h>
#endif
# include <unistd.h>
#endif
-#ifdef Q_OS_WIN
32
+#ifdef Q_OS_WIN
# include <windows.h>
# include <Winbase.h>
# define SECURITY_WIN32
# include <windows.h>
# include <Winbase.h>
# define SECURITY_WIN32
@@
-78,7
+78,7
@@
Identity::Identity(const Identity &other, QObject *parent)
}
}
-#ifdef Q_
W
S_WIN
+#ifdef Q_
O
S_WIN
#ifdef UNICODE
QString tcharToQString(TCHAR *tchar)
{
#ifdef UNICODE
QString tcharToQString(TCHAR *tchar)
{
@@
-120,7
+120,7
@@
QString Identity::defaultNick()
if (!userName.isEmpty())
nick = userName;
if (!userName.isEmpty())
nick = userName;
-#elif defined(Q_OS_WIN
32
)
+#elif defined(Q_OS_WIN)
TCHAR infoBuf[128];
DWORD bufCharCount = 128;
//if(GetUserNameEx(/* NameSamCompatible */ 1, infoBuf, &bufCharCount))
TCHAR infoBuf[128];
DWORD bufCharCount = 128;
//if(GetUserNameEx(/* NameSamCompatible */ 1, infoBuf, &bufCharCount))
@@
-159,7
+159,7
@@
QString Identity::defaultRealName()
else
return generalDefault;
else
return generalDefault;
-#elif defined(Q_OS_WIN
32
)
+#elif defined(Q_OS_WIN)
TCHAR infoBuf[128];
DWORD bufCharCount = 128;
if (GetUserName(infoBuf, &bufCharCount))
TCHAR infoBuf[128];
DWORD bufCharCount = 128;
if (GetUserName(infoBuf, &bufCharCount))