mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-30 20:15:35 +08:00
VoiceRoom: removed default initializers, fixed Doxygen
This commit is contained in:
@@ -18,16 +18,16 @@ namespace BlackMisc
|
||||
namespace Voice
|
||||
{
|
||||
CVoiceRoom::CVoiceRoom(const QString &serverUrl, bool connected) :
|
||||
m_hostname(""), m_channel(""), m_connected(connected), m_audioPlaying(false)
|
||||
m_connected(connected), m_audioPlaying(false)
|
||||
{
|
||||
if (serverUrl.contains("/"))
|
||||
{
|
||||
QString url = serverUrl.trimmed().toLower();
|
||||
url.replace(CVoiceRoom::protocolComplete(), "");
|
||||
url.replace(CVoiceRoom::protocol(), "");
|
||||
QStringList splittedSpec = serverUrl.split("/");
|
||||
m_hostname = splittedSpec.at(0);
|
||||
m_channel = splittedSpec.at(1);
|
||||
QStringList splitParts = serverUrl.split("/");
|
||||
m_hostname = splitParts.at(0);
|
||||
m_channel = splitParts.at(1);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -36,7 +36,7 @@ namespace BlackMisc
|
||||
* \param channel
|
||||
*/
|
||||
CVoiceRoom(const QString &hostname, const QString &channel) :
|
||||
m_hostname(hostname), m_channel(channel), m_audioPlaying(false) {}
|
||||
m_hostname(hostname), m_channel(channel), m_connected(false), m_audioPlaying(false) {}
|
||||
|
||||
/*!
|
||||
* Constructor.
|
||||
|
||||
Reference in New Issue
Block a user