mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-31 04:25:35 +08:00
Some minor fixes in server and style in testing
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user