Skip to content

Commit

Permalink
Merge PR #2257: Various C++11 fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mkrautz committed May 9, 2016
2 parents 9b2bb22 + 39aebda commit 7072cb2
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/Channel.cpp
Expand Up @@ -191,7 +191,7 @@ void Channel::removeUser(User *p) {
qlUsers.removeAll(p);
}

Channel::operator const QString() const {
Channel::operator QString() const {
return QString::fromLatin1("%1[%2:%3%4]").arg(qsName,
QString::number(iId),
QString::number(cParent ? cParent->iId : -1),
Expand Down
2 changes: 1 addition & 1 deletion src/Channel.h
Expand Up @@ -108,7 +108,7 @@ class Channel : public QObject {
QSet<Channel *> allLinks();
QSet<Channel *> allChildren();

operator const QString() const;
operator QString() const;
};

#endif
4 changes: 2 additions & 2 deletions src/mumble/GlobalShortcut_macx.mm
Expand Up @@ -106,7 +106,7 @@
CGEventFlags f = CGEventGetFlags(event);

// Dump active event taps on Ctrl+Alt+Cmd.
CGEventFlags ctrlAltCmd = kCGEventFlagMaskControl|kCGEventFlagMaskAlternate|kCGEventFlagMaskCommand;
CGEventFlags ctrlAltCmd = static_cast<CGEventFlags>(kCGEventFlagMaskControl|kCGEventFlagMaskAlternate|kCGEventFlagMaskCommand);
if ((f & ctrlAltCmd) == ctrlAltCmd)
gs->dumpEventTaps();

Expand Down Expand Up @@ -146,7 +146,7 @@
return suppress ? NULL : event;
}

GlobalShortcutMac::GlobalShortcutMac() : modmask(0) {
GlobalShortcutMac::GlobalShortcutMac() : modmask(static_cast<CGEventFlags>(0)) {
#ifndef QT_NO_DEBUG
qWarning("GlobalShortcutMac: Debug build detected. Disabling shortcut engine.");
return;
Expand Down
2 changes: 1 addition & 1 deletion src/murmur/ServerUser.cpp
Expand Up @@ -55,7 +55,7 @@ ServerUser::ServerUser(Server *p, QSslSocket *socket) : Connection(p, socket), U
}


ServerUser::operator const QString() const {
ServerUser::operator QString() const {
return QString::fromLatin1("%1:%2(%3)").arg(qsName).arg(uiSession).arg(iId);
}
BandwidthRecord::BandwidthRecord() {
Expand Down
2 changes: 1 addition & 1 deletion src/murmur/ServerUser.h
Expand Up @@ -89,7 +89,7 @@ class ServerUser : public Connection, public User {
public:
enum State { Connected, Authenticated };
State sState;
operator const QString() const;
operator QString() const;

float dUDPPingAvg, dUDPPingVar;
float dTCPPingAvg, dTCPPingVar;
Expand Down

0 comments on commit 7072cb2

Please sign in to comment.