Remove Q_ASSERT's from QNetworkReply autotest
Rather than aborting in debug builds and ignoring the failure in release builds, report a fatal error in all builds. Change-Id: I1fb8e692c65cf23cf5d2453173db742260ddca48 Task-number: QTBUG-17582 Reviewed-by: Rohan McGovern (cherry picked from commit 136f39bbb63706819eb18d000f305edbe1cc6a81)
This commit is contained in:
parent
eeebb27650
commit
f6cbfff326
@ -622,9 +622,14 @@ public:
|
||||
}
|
||||
|
||||
QIODevice *prepare(const QNetworkCacheMetaData &)
|
||||
{ Q_ASSERT(0 && "Should not have tried to add to the cache"); return 0; }
|
||||
{
|
||||
qFatal("%s: Should not have tried to add to the cache", Q_FUNC_INFO);
|
||||
return 0;
|
||||
}
|
||||
void insert(QIODevice *)
|
||||
{ Q_ASSERT(0 && "Should not have tried to add to the cache"); }
|
||||
{
|
||||
qFatal("%s: Should not have tried to add to the cache", Q_FUNC_INFO);
|
||||
}
|
||||
|
||||
void clear() { cache.clear(); }
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user