X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fcommon%2Fircchannel.cpp;h=c759e1dd3cdc47a1519f15cb1796eed8b61aa96e;hb=9f5f7f67cd4ccca7e6f922313aa0aa78246f7855;hp=de7b830977dad9dff256946a81c592704d6fca31;hpb=294e7ee7e918cf4d85ddf4eca1f5bcedabf561eb;p=quassel.git diff --git a/src/common/ircchannel.cpp b/src/common/ircchannel.cpp index de7b8309..c759e1dd 100644 --- a/src/common/ircchannel.cpp +++ b/src/common/ircchannel.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2015 by the Quassel Project * + * Copyright (C) 2005-2016 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -555,9 +555,8 @@ bool IrcChannel::hasMode(const QChar &mode) const return _C_channelModes.contains(mode); case Network::D_CHANMODE: return _D_channelModes.contains(mode); - default: - return false; } + return false; } @@ -590,9 +589,11 @@ QStringList IrcChannel::modeValueList(const QChar &mode) const case Network::A_CHANMODE: if (_A_channelModes.contains(mode)) return _A_channelModes[mode]; + break; default: - return QStringList(); + ; } + return {}; }