More CLANG compiler warning fixes
This commit is contained in:
@@ -88,7 +88,6 @@ public:
|
||||
private:
|
||||
comboBox * m_backend;
|
||||
comboBox * m_device;
|
||||
LcdSpinBox * m_channels;
|
||||
AudioPortAudioSetupUtil m_setupUtil;
|
||||
|
||||
} ;
|
||||
|
||||
@@ -195,11 +195,11 @@ public:
|
||||
|
||||
/*! \brief Saves settings (value, automation links and controller connections) of AutomatableModel into
|
||||
specified DOM element using <name> as attribute/node name */
|
||||
void saveSettings( QDomDocument& doc, QDomElement& element, const QString& name );
|
||||
virtual void saveSettings( QDomDocument& doc, QDomElement& element, const QString& name );
|
||||
|
||||
/*! \brief Loads settings (value, automation links and controller connections) of AutomatableModel from
|
||||
specified DOM element using <name> as attribute/node name */
|
||||
void loadSettings( const QDomElement& element, const QString& name );
|
||||
virtual void loadSettings( const QDomElement& element, const QString& name );
|
||||
|
||||
virtual QString nodeName() const
|
||||
{
|
||||
@@ -236,6 +236,13 @@ public slots:
|
||||
|
||||
|
||||
protected:
|
||||
virtual void redoStep( JournalEntry& je );
|
||||
virtual void undoStep( JournalEntry& je );
|
||||
|
||||
float fittedValue( float value ) const;
|
||||
|
||||
|
||||
private:
|
||||
virtual void saveSettings( QDomDocument& doc, QDomElement& element )
|
||||
{
|
||||
saveSettings( doc, element, "value" );
|
||||
@@ -246,13 +253,6 @@ protected:
|
||||
loadSettings( element, "value" );
|
||||
}
|
||||
|
||||
virtual void redoStep( JournalEntry& je );
|
||||
virtual void undoStep( JournalEntry& je );
|
||||
|
||||
float fittedValue( float value ) const;
|
||||
|
||||
|
||||
private:
|
||||
void linkModel( AutomatableModel* model );
|
||||
void unlinkModel( AutomatableModel* model );
|
||||
|
||||
|
||||
@@ -65,11 +65,8 @@ private slots:
|
||||
private:
|
||||
QVector<ControllerView *> m_controllerViews;
|
||||
|
||||
QVBoxLayout * m_mainLayout;
|
||||
QScrollArea * m_scrollArea;
|
||||
QPushButton * m_addButton;
|
||||
|
||||
int m_lastY;
|
||||
|
||||
} ;
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* DummyInstrument.h - instrument used as fallback if an instrument couldn't
|
||||
* be loaded
|
||||
*
|
||||
* Copyright (c) 2005-2009 Tobias Doerffel <tobydox/at/users.sourceforge.net>
|
||||
* Copyright (c) 2005-2014 Tobias Doerffel <tobydox/at/users.sourceforge.net>
|
||||
*
|
||||
* This file is part of Linux MultiMedia Studio - http://lmms.sourceforge.net
|
||||
*
|
||||
@@ -42,7 +42,7 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
virtual void playNote( NotePlayHandle *, bool, sampleFrame * )
|
||||
virtual void playNote( NotePlayHandle *, sampleFrame * )
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -474,7 +474,6 @@ private:
|
||||
#else
|
||||
int m_shmID;
|
||||
#endif
|
||||
size_t m_shmSize;
|
||||
shmData * m_data;
|
||||
#ifdef USE_QT_SEMAPHORES
|
||||
QSystemSemaphore m_dataSem;
|
||||
@@ -780,7 +779,6 @@ private:
|
||||
void resizeSharedProcessingMemory();
|
||||
|
||||
|
||||
bool m_initialized;
|
||||
bool m_failed;
|
||||
|
||||
QProcess m_process;
|
||||
|
||||
@@ -53,8 +53,8 @@ public:
|
||||
const QString & _display_name = QString() );
|
||||
virtual ~TempoSyncKnobModel();
|
||||
|
||||
virtual void saveSettings( QDomDocument & _doc, QDomElement & _this, const QString& name = "value" );
|
||||
virtual void loadSettings( const QDomElement & _this, const QString& name = "value" );
|
||||
void saveSettings( QDomDocument & _doc, QDomElement & _this, const QString& name );
|
||||
void loadSettings( const QDomElement & _this, const QString& name );
|
||||
|
||||
TempoSyncMode syncMode() const
|
||||
{
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
* shared_object.h - class sharedObject for use among other objects
|
||||
*
|
||||
* Copyright (c) 2006-2007 Javier Serrano Polo <jasp00/at/users.sourceforge.net>
|
||||
* Copyright (c) 2008 Tobias Doerffel <tobydox/at/users.sourceforge.net>
|
||||
*
|
||||
* Copyright (c) 2008-2014 Tobias Doerffel <tobydox/at/users.sourceforge.net>
|
||||
*
|
||||
* This file is part of Linux MultiMedia Studio - http://lmms.sourceforge.net
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
@@ -23,10 +23,8 @@
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
#ifndef _SHARED_OBJECT_H
|
||||
#define _SHARED_OBJECT_H
|
||||
|
||||
#ifndef SHARED_OBJECT_H
|
||||
#define SHARED_OBJECT_H
|
||||
|
||||
#include <QtCore/QMutex>
|
||||
|
||||
@@ -45,27 +43,33 @@ public:
|
||||
}
|
||||
|
||||
template<class T>
|
||||
static T * ref( T * _object )
|
||||
static T* ref( T* object )
|
||||
{
|
||||
_object->m_lock.lock();
|
||||
object->m_lock.lock();
|
||||
// TODO: Use QShared
|
||||
++_object->m_referenceCount;
|
||||
_object->m_lock.unlock();
|
||||
return( _object );
|
||||
++object->m_referenceCount;
|
||||
object->m_lock.unlock();
|
||||
return object;
|
||||
}
|
||||
|
||||
template<class T>
|
||||
static void unref( T * _object )
|
||||
static void unref( T* object )
|
||||
{
|
||||
_object->m_lock.lock();
|
||||
bool delete_object = --_object->m_referenceCount <= 0;
|
||||
_object->m_lock.unlock();
|
||||
if ( delete_object )
|
||||
object->m_lock.lock();
|
||||
bool deleteObject = --object->m_referenceCount <= 0;
|
||||
object->m_lock.unlock();
|
||||
|
||||
if ( deleteObject )
|
||||
{
|
||||
delete _object;
|
||||
delete object;
|
||||
}
|
||||
}
|
||||
|
||||
// keep clang happy which complaines about unused member variable
|
||||
void dummy()
|
||||
{
|
||||
m_referenceCount = 0;
|
||||
}
|
||||
|
||||
private:
|
||||
int m_referenceCount;
|
||||
|
||||
@@ -307,8 +307,6 @@ private:
|
||||
typedef QVector<trackContentObjectView *> tcoViewVector;
|
||||
tcoViewVector m_tcoViews;
|
||||
|
||||
int m_pixelsPerTact;
|
||||
|
||||
QPixmap m_background;
|
||||
|
||||
} ;
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* ControllerRackView.cpp - view for song's controllers
|
||||
*
|
||||
* Copyright (c) 2008-2009 Paul Giblock <drfaygo/at/gmail.com>
|
||||
* Copyright (c) 2010-2011 Tobias Doerffel <tobydox/at/users.sourceforge.net>
|
||||
* Copyright (c) 2010-2014 Tobias Doerffel <tobydox/at/users.sourceforge.net>
|
||||
*
|
||||
* This file is part of Linux MultiMedia Studio - http://lmms.sourceforge.net
|
||||
*
|
||||
@@ -42,8 +42,7 @@
|
||||
|
||||
|
||||
ControllerRackView::ControllerRackView( ) :
|
||||
QWidget(),
|
||||
m_lastY( 0 )
|
||||
QWidget()
|
||||
{
|
||||
setMinimumWidth( 250 );
|
||||
setMaximumWidth( 250 );
|
||||
|
||||
Reference in New Issue
Block a user