Warn if result of processInPlace() is unchecked.
Fix callers accordingly.
This commit is contained in:
@@ -59,11 +59,11 @@ public:
|
||||
return m_backend->process(data, ok);
|
||||
}
|
||||
|
||||
inline bool processInPlace(QByteArray& data) {
|
||||
inline bool processInPlace(QByteArray& data) Q_REQUIRED_RESULT {
|
||||
return m_backend->processInPlace(data);
|
||||
}
|
||||
|
||||
inline bool processInPlace(QByteArray& data, quint64 rounds) {
|
||||
inline bool processInPlace(QByteArray& data, quint64 rounds) Q_REQUIRED_RESULT {
|
||||
Q_ASSERT(rounds > 0);
|
||||
return m_backend->processInPlace(data, rounds);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user