[*] fix under Linux
This commit is contained in:
parent
f2f34c1d40
commit
3a41a3857f
|
|
@ -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
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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__
|
||||
Loading…
Reference in New Issue