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: 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;
} }
} }

View File

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

View File

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