mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 19:04:32 +02:00
Replace NO_ERROR with NoError
This commit is contained in:
parent
a7cae75efc
commit
70c937d37f
2 changed files with 3 additions and 3 deletions
|
@ -45,7 +45,7 @@ void AssetRequest::start() {
|
|||
_info = info;
|
||||
_error = error;
|
||||
|
||||
if (_error != NO_ERROR) {
|
||||
if (_error != NoError) {
|
||||
qCDebug(networking) << "Got error retrieving asset info for" << _hash;
|
||||
_state = FINISHED;
|
||||
emit finished(this);
|
||||
|
@ -65,7 +65,7 @@ void AssetRequest::start() {
|
|||
Q_ASSERT(data.size() == (end - start));
|
||||
|
||||
_error = error;
|
||||
if (_error == NO_ERROR) {
|
||||
if (_error == NoError) {
|
||||
memcpy(_data.data() + start, data.constData(), data.size());
|
||||
_totalReceived += data.size();
|
||||
emit progress(_totalReceived, _info.size);
|
||||
|
|
|
@ -48,7 +48,7 @@ void AssetResourceRequest::doSend() {
|
|||
Q_ASSERT(req->getState() == AssetRequest::FINISHED);
|
||||
|
||||
switch (req->getError()) {
|
||||
case NO_ERROR:
|
||||
case NoError:
|
||||
_data = req->getData();
|
||||
_result = Success;
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue