Commit Graph

41 Commits

Author SHA1 Message Date
Robert
af7dac72f4 FORMAT: Run clang-format 10 on all C/CXX source-files 2020-09-11 18:29:33 +02:00
Popkornium18
f966b3ef37 REFAC(shared): replace NULL with nullptr
This changes all occurances of NULL in the src source
dir to nullptr. Additionally explicit comparisons with NULL were
removed.
2020-07-02 12:19:16 +02:00
Davide Beatrici
f264587e57
Merge PR #3933: Introduce static field for case-sensitivity of AccessTokens 2020-01-13 20:14:49 +01:00
Davide Beatrici
4e67a2fafb Auto-update LICENSE.header in source files 2020-01-07 03:09:22 +01:00
Robert Adam
c9a50333e5 src/Group: Use a static const member to indicate access token's case-sensitivity (#3926) 2020-01-02 12:32:33 +01:00
Davide Beatrici
15831dbca8 Add missing includes for "no-pch" build
This commit adds all the missing includes when the PCH header is not used.

Also, some includes are reordered and/or made consistent (e.g. "#include <QtEndian>" -> "#include <QtCore/QtEndian>").
2019-09-12 22:08:39 +02:00
Davide Beatrici
5a07244a44 Don't include PCH headers directly
According to Qt's documentation the PCH header doesn't need to be included.

From https://doc.qt.io/qt-5/qmake-precompiledheaders.html:

"To make your project use precompiled headers, you only need to define the PRECOMPILED_HEADER variable in your project file."

"qmake will handle the rest, to ensure the creation and use of the precompiled header file. You do not need to include the precompiled header file in HEADERS, as qmake will do this if the configuration supports precompiled headers."
2019-09-12 00:13:35 +02:00
Davide Beatrici
b427333257 Auto-update LICENSE.header in source files 2019-01-25 04:56:19 +01:00
davidebeatrici
0b5579c755 Fix and refactor problems found via GCC 7's -Wimplicit-fallthrough.
This commit fixes various problems discovered by building on Debian buster
which uses GCC 7. Building on buster gave various -Wimplicit-fallthrough warnings.

In Group.cpp and Server.cpp, we now use if statements instead of a switch with fallthrough.
This improves readability of the code, and fixes the implicit fallthroughs.

In PulseAudio.cpp, we had unintended fallthroughs in a switch statement, which have been
fixed.

In Cert.cpp, we had a potential fallthrough which was impossible to trigger at runtime,
fixed by adding an error return, like the surrounding code.

Fixes #3306.
2018-01-21 22:54:47 +01:00
Mikkel Krautz
f6ba3a52bf Auto-update LICENSE.header in source files. 2018-01-01 23:05:37 +01:00
Mikkel Krautz
91ebb8b0b5 Update tree copyrights to 2017. 2017-01-08 21:05:57 +01:00
Mikkel Krautz
395c084b7a src: update to use LICENSE.header. 2016-05-10 22:42:02 +02:00
Stefan Hacker
7c5a9fb3b8 Fix murmur handling all groups starting with "sub" as special.
Now only detect "sub" without parameters or names starting with
"sub," as those are "sub" with a parameter list.

Fixes #1199
2014-09-21 15:56:26 +02:00
Mikkel Krautz
5cb337049b mumble, murmur: Qt 5 support for Linux. 2013-06-29 16:56:41 +02:00
Kissaki
839a3e6f9c refac: readability/consistency
- replace while(1) with while(true)
2013-06-04 22:38:57 +02:00
Benjamin Jemlich
07737a314c Fix include guards and PCH includes 2011-11-09 00:12:10 +01:00
Thorvald Natvig
f3437a6ba7 Update copyright year ranges of dev team. 2011-03-18 05:52:51 +01:00
Mikkel Krautz
091d9be5bb Fix Group::members() to include members of the channel that the group is defined on even if it's marked as inheritable. 2010-11-22 01:22:19 +01:00
Thorvald Natvig
7d8100275d Split ServerUser from Server.cpp 2010-01-28 12:34:38 +01:00
Thorvald Natvig
16339bfc91 Update license to 2010 2010-01-05 08:49:22 +01:00
Thorvald Natvig
995866025d Clean up compiler warnings on Win32 2009-10-19 14:39:15 +02:00
Thorvald Natvig
0693714bf3 Whisper target redirect and session-based tempgroups 2009-10-12 15:28:06 +02:00
Thorvald Natvig
db919c0005 @strong group for strong certificates 2009-09-09 17:27:06 +02:00
Thorvald Natvig
947a420cf6 Certhash-based ACL, and creators have full write on created channels 2009-07-18 01:11:19 +02:00
Thorvald Natvig
86c2c3419c Indent, changelog and submodule update 2009-07-15 23:07:50 +02:00
Thorvald Natvig
9c5ecca370 Use QStringList for tokens 2009-07-13 21:44:18 +02:00
Thorvald Natvig
37076e3def Token-based ACL 2009-07-13 20:53:42 +02:00
Thorvald Natvig
866a66d339 ifdef out module-specific parts of shared code 2009-07-13 16:37:39 +02:00
Thorvald Natvig
51120fe838 s/Player/User/ 2009-05-02 17:52:14 +02:00
Thorvald Natvig
07640348b5 Use ACLGroup for ACLEditor instead of base Group 2009-04-30 16:30:46 +02:00
Thorvald Natvig
1718cde75e Make Mumble compile with protobuf. 2009-03-26 21:51:50 +01:00
Thorvald Natvig
e3f271b553 Indenting update
git-svn-id: https://mumble.svn.sourceforge.net/svnroot/mumble/trunk@1458 05730e5d-ab1b-0410-a4ac-84af385074fa
2009-01-19 23:09:19 +00:00
Thorvald Natvig
ad2b8e2149 Update copyright for 2009
git-svn-id: https://mumble.svn.sourceforge.net/svnroot/mumble/trunk@1380 05730e5d-ab1b-0410-a4ac-84af385074fa
2009-01-05 15:12:48 +00:00
Thorvald Natvig
dc7e438976 Update copyright for 2008
git-svn-id: https://mumble.svn.sourceforge.net/svnroot/mumble/trunk@908 05730e5d-ab1b-0410-a4ac-84af385074fa
2008-01-05 16:25:48 +00:00
Thorvald Natvig
1b265ffa8c reindenting all the code
git-svn-id: https://mumble.svn.sourceforge.net/svnroot/mumble/trunk@622 05730e5d-ab1b-0410-a4ac-84af385074fa
2007-07-17 23:12:38 +00:00
Thorvald Natvig
ade816d964 Simple userauth. Example expanded to show phpBB3 authentication.
git-svn-id: https://mumble.svn.sourceforge.net/svnroot/mumble/trunk@583 05730e5d-ab1b-0410-a4ac-84af385074fa
2007-07-12 15:37:13 +00:00
Thorvald Natvig
d1ffed0c22 Fix recursion bug in getGroup
git-svn-id: https://mumble.svn.sourceforge.net/svnroot/mumble/trunk@515 05730e5d-ab1b-0410-a4ac-84af385074fa
2007-06-30 22:43:49 +00:00
Thorvald Natvig
f49b38b92c QLatin1String
git-svn-id: https://mumble.svn.sourceforge.net/svnroot/mumble/trunk@478 05730e5d-ab1b-0410-a4ac-84af385074fa
2007-06-13 11:21:05 +00:00
Thorvald Natvig
9dafd3743f Update copyrights to 2007
git-svn-id: https://mumble.svn.sourceforge.net/svnroot/mumble/trunk@474 05730e5d-ab1b-0410-a4ac-84af385074fa
2007-06-12 15:58:16 +00:00
Thorvald Natvig
07531c5d43 QString::fromAscii
git-svn-id: https://mumble.svn.sourceforge.net/svnroot/mumble/trunk@472 05730e5d-ab1b-0410-a4ac-84af385074fa
2007-06-12 14:18:54 +00:00
Thorvald Natvig
e81c522903 Refactoring
git-svn-id: https://mumble.svn.sourceforge.net/svnroot/mumble/trunk@444 05730e5d-ab1b-0410-a4ac-84af385074fa
2007-05-24 09:36:57 +00:00