suppressing various GCC warnings

This commit is contained in:
Mathew Sutcliffe
2013-09-24 01:01:07 +01:00
parent 0a6fbb8aac
commit dc436735cc
2 changed files with 14 additions and 6 deletions

View File

@@ -86,8 +86,16 @@ namespace BlackCore
signals:
void terminate();
public:
//! Deletion policy for QScopedPointer
struct VatlibQScopedPointerDeleter
{
//! Called by QScopedPointer destructor
static void cleanup(Cvatlib_Network *net) { if (net) net->Destroy(); }
};
private:
QScopedPointer<Cvatlib_Network> m_net;
QScopedPointer<Cvatlib_Network, VatlibQScopedPointerDeleter> m_net;
Cvatlib_Network::connStatus m_status;
QBasicTimer m_timer;