[*] fix under Linux

This commit is contained in:
fuCtor 2012-05-30 21:12:30 -07:00
parent f2f34c1d40
commit 3a41a3857f
3 changed files with 12 additions and 6 deletions

View File

@ -9,7 +9,9 @@
using namespace QAMQP;
struct QAMQP::ClientExceptionCleaner
namespace QAMQP
{
struct ClientExceptionCleaner
{
/* this cleans up when the constructor throws an exception */
static inline void cleanup(Client *that, ClientPrivate *d)
@ -23,6 +25,7 @@ struct QAMQP::ClientExceptionCleaner
#endif
}
};
}
//////////////////////////////////////////////////////////////////////////

View File

@ -9,7 +9,8 @@
using namespace QAMQP::Frame;
Base::Base( Type type ) :type_(type), channel_(0), size_(0) {}
Base::Base( QDataStream& raw ){
Base::Base( QDataStream& raw )
{
readHeader(raw);
}

View File

@ -49,10 +49,9 @@ namespace QAMQP
quint32 value;
};
Q_DECLARE_METATYPE(QAMQP::Frame::decimal);
typedef QHash<QString, QVariant> TableField;
Q_DECLARE_METATYPE(QAMQP::Frame::TableField);
QDataStream & serialize( QDataStream & stream, const QAMQP::Frame::TableField & f );
QDataStream & deserialize( QDataStream & stream, QAMQP::Frame::TableField & f );
@ -174,4 +173,7 @@ namespace QAMQP
}
}
Q_DECLARE_METATYPE(QAMQP::Frame::decimal);
Q_DECLARE_METATYPE(QAMQP::Frame::TableField);
#endif // amqp_frame_h__