Merge pull request #50 from huffman/mac-fixes

Replace NO_ERROR with NoError
This commit is contained in:
Clément Brisset 2015-09-01 21:40:51 +02:00
commit 7c15b88d98
2 changed files with 3 additions and 3 deletions

View file

@ -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);

View file

@ -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;