mirror of
https://github.com/lubosz/overte.git
synced 2025-04-16 09:29:16 +02:00
move assert into ifndef QT_NO_DEBUG it belongs to
This commit is contained in:
parent
fa221fa7e3
commit
6a8f131a83
1 changed files with 2 additions and 2 deletions
|
@ -84,8 +84,8 @@ void testByteCountCodedStable(const T& value) {
|
|||
Q_ASSERT(decoder.data == coder.data);
|
||||
#ifndef QT_NO_DEBUG
|
||||
auto consumed = decoder.decode(encoded.data(), encoded.size());
|
||||
#endif
|
||||
Q_ASSERT(consumed == (unsigned int)originalEncodedSize);
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
|
@ -124,9 +124,9 @@ void testPropertyFlags(uint32_t value) {
|
|||
{
|
||||
#ifndef QT_NO_DEBUG
|
||||
int decodeSize = decodeNew.decode((const uint8_t*)encoded.data(), encoded.size());
|
||||
#endif
|
||||
Q_ASSERT(originalSize == decodeSize);
|
||||
Q_ASSERT(decodeNew == original);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue