Index: sources/utility/format.cpp =================================================================== diff -u -rfd9d9c1f190781f5ff1bc23a732f9424f9434002 -r4295d12645b607b7c0cca8733c3d9eb5f538b418 --- sources/utility/format.cpp (.../format.cpp) (revision fd9d9c1f190781f5ff1bc23a732f9424f9434002) +++ sources/utility/format.cpp (.../format.cpp) (revision 4295d12645b607b7c0cca8733c3d9eb5f538b418) @@ -43,7 +43,9 @@ * \brief Format::fromVariant * \details This static method converts the defined types into QByteArray * \param vData - The value - * \return The QByteAttay of the value vData if can't be converted 0xFF will be returned + * \return The QByteAttay of the value vData if can't be converted 0x00 will be returned + * \note Regarding the QVariant type conversion, if cannot be cionverted 0 will be returned + * This rule has been used and also to be consistent followed the sae rule. */ QByteArray Format::fromVariant(const QVariant &vData) { @@ -93,7 +95,6 @@ return mData; } - mData += 0xFF; + mData += '\0'; return mData; } -