1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-14 01:54:07 +02:00

fix warnings

This commit is contained in:
Leo Franchi
2011-02-08 15:51:44 -05:00
parent fe754adb92
commit 03281b58f9
5 changed files with 7 additions and 4 deletions

View File

@@ -267,6 +267,9 @@ set( libHeaders
widgets/infowidgets/sourceinfowidget.h widgets/infowidgets/sourceinfowidget.h
) )
set( libHeaders_NoMOC
playlist/dynamic/GeneratorInterface.h
)
set( libUI ${libUI} set( libUI ${libUI}
widgets/newplaylistwidget.ui widgets/newplaylistwidget.ui
widgets/welcomewidget.ui widgets/welcomewidget.ui
@@ -335,7 +338,7 @@ ENDIF( UNIX AND NOT APPLE )
qt4_wrap_ui( libUI_H ${libUI} ) qt4_wrap_ui( libUI_H ${libUI} )
qt4_wrap_cpp( libMoc ${libHeaders} ) qt4_wrap_cpp( libMoc ${libHeaders} )
SET( libSources ${libSources} ${libUI_H} ) SET( libSources ${libSources} ${libUI_H} ${libHeaders_NoMOC} )
add_library( tomahawklib SHARED ${libSources} ${libMoc} ) add_library( tomahawklib SHARED ${libSources} ${libMoc} )

View File

@@ -33,8 +33,8 @@ Artist::Artist( unsigned int id, const QString& name, const Tomahawk::collection
: PlaylistInterface( this ) : PlaylistInterface( this )
, m_id( id ) , m_id( id )
, m_name( name ) , m_name( name )
, m_collection( collection )
, m_currentTrack( 0 ) , m_currentTrack( 0 )
, m_collection( collection )
{ {
} }

View File

@@ -122,7 +122,7 @@ FuzzyIndex::search( const QString& table, const QString& name )
lucene::search::FuzzyQuery* qry = _CLNEW lucene::search::FuzzyQuery( _CLNEW lucene::index::Term( table.toStdWString().c_str(), name.toStdWString().c_str() ) ); lucene::search::FuzzyQuery* qry = _CLNEW lucene::search::FuzzyQuery( _CLNEW lucene::index::Term( table.toStdWString().c_str(), name.toStdWString().c_str() ) );
hits = m_luceneSearcher->search( qry ); hits = m_luceneSearcher->search( qry );
for ( unsigned int i = 0; i < hits->length(); i++ ) for ( int i = 0; i < hits->length(); i++ )
{ {
lucene::document::Document* d = &hits->doc( i ); lucene::document::Document* d = &hits->doc( i );

View File

@@ -739,4 +739,5 @@ Servent::httpIODeviceFactory( const Tomahawk::result_ptr& result )
QNetworkRequest req( result->url() ); QNetworkRequest req( result->url() );
QNetworkReply* reply = APP->nam()->get( req ); QNetworkReply* reply = APP->nam()->get( req );
return QSharedPointer<QIODevice>( reply );*/ return QSharedPointer<QIODevice>( reply );*/
return QSharedPointer<QIODevice>();
} }

View File

@@ -394,7 +394,6 @@ Playlist::resolve()
void void
Playlist::onResultsFound( const QList<Tomahawk::result_ptr>& results ) Playlist::onResultsFound( const QList<Tomahawk::result_ptr>& results )
{ {
Query* query = qobject_cast<Query*>( sender() );
m_locallyChanged = true; m_locallyChanged = true;
} }