diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 548fb9294..dd7e8dff5 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -94,9 +94,8 @@ SET( tomahawkUI ${tomahawkUI} INCLUDE_DIRECTORIES( . ${CMAKE_CURRENT_BINARY_DIR} - /usr/include/c++/v1/ -audio + audio database playlist network diff --git a/src/libtomahawk/CMakeLists.txt b/src/libtomahawk/CMakeLists.txt index 07072cd62..2c0e5433c 100644 --- a/src/libtomahawk/CMakeLists.txt +++ b/src/libtomahawk/CMakeLists.txt @@ -15,6 +15,7 @@ include( ${QT_USE_FILE} ) add_definitions( ${QT_DEFINITIONS} ) add_definitions( -DQT_SHARED ) add_definitions( -DDLLEXPORT_PRO ) +add_definitions( -DQT_SHAREDPOINTER_TRACK_POINTERS ) set( libGuiSources @@ -332,8 +333,6 @@ include_directories( . ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_BINARY_DIR}/. ${LIBLASTFM_INCLUDE_DIRS}/.. ${CLUCENE_INCLUDE_DIRS} ${PHONON_INCLUDES} - /usr/include/c++/v1/ - playlist diff --git a/src/libtomahawk/database/IdThreadWorker.h b/src/libtomahawk/database/IdThreadWorker.h deleted file mode 100644 index 57d15184d..000000000 --- a/src/libtomahawk/database/IdThreadWorker.h +++ /dev/null @@ -1,39 +0,0 @@ -/* === This file is part of Tomahawk Player - === - * - * Copyright 2012 Leo Franchi - * - * Tomahawk is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * Tomahawk is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with Tomahawk. If not, see . - */ -#ifndef IDTHREADWORKER_H -#define IDTHREADWORKER_H - -#include - -//#include -//#include - -class IdThreadWorker : public QThread -{ - Q_OBJECT -public: - explicit IdThreadWorker( QObject *parent = 0 ); - - void run(); - -private: - - -}; - -#endif // IDTHREADWORKER_H diff --git a/src/libtomahawk/utils/Closure.cpp b/src/libtomahawk/utils/Closure.cpp index 89c1b5a63..2b2a608bb 100644 --- a/src/libtomahawk/utils/Closure.cpp +++ b/src/libtomahawk/utils/Closure.cpp @@ -46,7 +46,7 @@ Closure::Closure(QObject* sender, Closure::Closure(QObject* sender, const char* signal, - std::function callback) + std::tr1::function callback) : callback_(callback) { Connect(sender, signal); } diff --git a/src/libtomahawk/utils/Closure.h b/src/libtomahawk/utils/Closure.h index 5ee2ef246..591712358 100644 --- a/src/libtomahawk/utils/Closure.h +++ b/src/libtomahawk/utils/Closure.h @@ -21,7 +21,7 @@ #include "DllMacro.h" -#include +#include #include #include @@ -64,7 +64,7 @@ class DLLEXPORT Closure : public QObject, boost::noncopyable { const ClosureArgumentWrapper* val3 = 0); Closure(QObject* sender, const char* signal, - std::function callback); + std::tr1::function callback); void setAutoDelete( bool autoDelete ) { autoDelete_ = autoDelete; } @@ -87,7 +87,7 @@ class DLLEXPORT Closure : public QObject, boost::noncopyable { void Connect(QObject* sender, const char* signal); QMetaMethod slot_; - std::function callback_; + std::tr1::function callback_; bool autoDelete_; boost::scoped_ptr val0_;