mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-05-01 06:35:41 +08:00
Some minor fixes in server and style in testing
This commit is contained in:
@@ -64,12 +64,8 @@ namespace BlackMisc
|
|||||||
case IndexIsAcceptingConnections:
|
case IndexIsAcceptingConnections:
|
||||||
return CVariant::fromValue(this->m_isAcceptingConnections);
|
return CVariant::fromValue(this->m_isAcceptingConnections);
|
||||||
default:
|
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)
|
void CServer::setPropertyByIndex(const CVariant &variant, const BlackMisc::CPropertyIndex &index)
|
||||||
@@ -102,7 +98,7 @@ namespace BlackMisc
|
|||||||
this->setIsAcceptingConnections(variant.value<bool>());
|
this->setIsAcceptingConnections(variant.value<bool>());
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
Q_ASSERT_X(false, "CServer", "index unknown");
|
CValueObject::setPropertyByIndex(variant, index);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -20,9 +20,7 @@ namespace BlackMisc
|
|||||||
{
|
{
|
||||||
namespace Network
|
namespace Network
|
||||||
{
|
{
|
||||||
/*!
|
//! Value object encapsulating information of a server
|
||||||
* Value object encapsulating information of a server
|
|
||||||
*/
|
|
||||||
class CServer : public CValueObject<CServer>
|
class CServer : public CValueObject<CServer>
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|||||||
@@ -14,9 +14,7 @@
|
|||||||
|
|
||||||
#include "blackmisc/aviation/atcstationlist.h"
|
#include "blackmisc/aviation/atcstationlist.h"
|
||||||
|
|
||||||
/*!
|
//! Generate data for testing purposes.
|
||||||
* Generate data for testing purposes.
|
|
||||||
*/
|
|
||||||
namespace BlackMisc
|
namespace BlackMisc
|
||||||
{
|
{
|
||||||
namespace Aviation
|
namespace Aviation
|
||||||
@@ -54,8 +52,7 @@ namespace BlackMisc
|
|||||||
static void parseWgs(int times);
|
static void parseWgs(int times);
|
||||||
};
|
};
|
||||||
|
|
||||||
} // Aviation
|
} // ns
|
||||||
|
} // ns
|
||||||
} // BlackMisc
|
|
||||||
|
|
||||||
#endif // guard
|
#endif // guard
|
||||||
|
|||||||
Reference in New Issue
Block a user