fix all warnings and add -Werror

This commit is contained in:
Andrew Kelley
2014-01-22 14:44:41 -05:00
parent 3a53473d10
commit 52d4f0fd3f
52 changed files with 225 additions and 447 deletions

View File

@@ -65,7 +65,6 @@
#include "mmp.h"
#include "song.h"
#warning TODO: move somewhere else
static inline QString baseName( const QString & _file )
{
return( QFileInfo( _file ).absolutePath() + "/" +

View File

@@ -195,26 +195,6 @@ void drawPath( QPainter *p, const QPainterPath &path,
}
static QString getCacheKey( const QString & _key,
const QStyleOption * _option, const QSize & _size )
{
QString tmp;
const QStyleOptionComplex *complexOption =
qstyleoption_cast<const QStyleOptionComplex *> ( _option );
tmp.sprintf( "%s,%d,%d,%d,%lld,%dx%d",
_key.toLatin1().constData(),
uint( _option->state ),
complexOption ? uint( complexOption->activeSubControls ) : uint( 0 ),
_option->direction,
_option->palette.cacheKey(),
_size.width(),
_size.height() );
return tmp;
}
LmmsStyle::LmmsStyle() :
QPlastiqueStyle()
{