Skip to content

Commit

Permalink
Win32: Fixed build
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Oct 7, 2011
1 parent f9c7741 commit 8c7f1ba
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
7 changes: 4 additions & 3 deletions doomsday/libdeng2/src/data/writer.cpp
Expand Up @@ -23,6 +23,7 @@
#include "de/ISerializable"
#include "de/FixedByteArray"
#include "de/data/byteorder.h"
#include <QScopedPointer>

using namespace de;

Expand Down Expand Up @@ -143,9 +144,9 @@ Writer& Writer::operator << (const FixedByteArray& fixedByteArray)

// Read the entire contents of the array.
const dsize size = fixedByteArray.size();
std::auto_ptr<IByteArray::Byte> data(new IByteArray::Byte[size]);
fixedByteArray.get(0, data.get(), size);
_destination.set(_fixedOffset + _offset, data.get(), size);
QScopedPointer<IByteArray::Byte> data(new IByteArray::Byte[size]);
fixedByteArray.get(0, data.data(), size);
_destination.set(_fixedOffset + _offset, data.data(), size);
_offset += size;
return *this;
}
Expand Down
2 changes: 1 addition & 1 deletion doomsday/libdeng2/src/legacy/legacycore.cpp
Expand Up @@ -62,7 +62,7 @@ LegacyCore::~LegacyCore()

int LegacyCore::runEventLoop(void (*func)(void))
{
LOG_AS("LegacyCore::runEventLoop");
LOG_AS("LegacyCore");
LOG_MSG("Starting event loop...");

// Set up a timer to periodically call the provided callback function.
Expand Down
2 changes: 1 addition & 1 deletion doomsday/libdeng2/src/net/socket.cpp
Expand Up @@ -294,7 +294,7 @@ void Socket::socketDisconnected()

void Socket::socketError(QAbstractSocket::SocketError /*socketError*/)
{
LOG_AS("Socket::socketError");
LOG_AS("Socket");
LOG_WARNING(d->socket->errorString());

emit disconnected(); //error(socketError);
Expand Down

0 comments on commit 8c7f1ba

Please sign in to comment.