Some minor fixes in server and style in testing

This commit is contained in:
Klaus Basan
2015-04-11 01:33:42 +02:00
parent f7b50b3f5a
commit 291746bc57
3 changed files with 6 additions and 15 deletions

View File

@@ -64,12 +64,8 @@ namespace BlackMisc
case IndexIsAcceptingConnections:
return CVariant::fromValue(this->m_isAcceptingConnections);
default:
break;
return CValueObject::propertyByIndex(index);
}
Q_ASSERT_X(false, "CServer", "index unknown");
QString m = QString("no property, index ").append(index.toQString());
return CVariant::fromValue(m);
}
void CServer::setPropertyByIndex(const CVariant &variant, const BlackMisc::CPropertyIndex &index)
@@ -102,7 +98,7 @@ namespace BlackMisc
this->setIsAcceptingConnections(variant.value<bool>());
break;
default:
Q_ASSERT_X(false, "CServer", "index unknown");
CValueObject::setPropertyByIndex(variant, index);
break;
}
}

View File

@@ -20,9 +20,7 @@ namespace BlackMisc
{
namespace Network
{
/*!
* Value object encapsulating information of a server
*/
//! Value object encapsulating information of a server
class CServer : public CValueObject<CServer>
{
public: