VoiceRoom: removed default initializers, fixed Doxygen

This commit is contained in:
Klaus Basan
2014-01-22 17:35:30 +01:00
parent 2307a2b642
commit 935594e9dc
2 changed files with 5 additions and 5 deletions

View File

@@ -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);
}
}

View File

@@ -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.