# HG changeset patch # User lbarthelemy # Date 1196096918 0 # Node ID be6f263fa0abf9f5d8965c06174945b094a8e02f # Parent e841a24915fffe60be45959d10fb7144f28a93a3 Change include order to build on Linux diff -r e841a24915ff -r be6f263fa0ab base/Pitch.cpp --- a/base/Pitch.cpp Mon Nov 26 14:39:16 2007 +0000 +++ b/base/Pitch.cpp Mon Nov 26 17:08:38 2007 +0000 @@ -13,11 +13,13 @@ COPYING included with this distribution for more information. */ +#include + #include "system/System.h" #include "Pitch.h" #include "Preferences.h" -#include + float Pitch::getFrequencyForPitch(int midiPitch, diff -r e841a24915ff -r be6f263fa0ab base/Profiler.cpp --- a/base/Profiler.cpp Mon Nov 26 14:39:16 2007 +0000 +++ b/base/Profiler.cpp Mon Nov 26 17:08:38 2007 +0000 @@ -20,13 +20,15 @@ */ #include -#include "Profiler.h" #include #include #include #include +#include "Profiler.h" + + using std::cerr; using std::endl; diff -r e841a24915ff -r be6f263fa0ab base/RangeMapper.cpp --- a/base/RangeMapper.cpp Mon Nov 26 14:39:16 2007 +0000 +++ b/base/RangeMapper.cpp Mon Nov 26 17:08:38 2007 +0000 @@ -13,14 +13,15 @@ COPYING included with this distribution for more information. */ -#include "system/System.h" -#include "RangeMapper.h" #include #include #include +#include "system/System.h" +#include "RangeMapper.h" + LinearRangeMapper::LinearRangeMapper(int minpos, int maxpos, float minval, float maxval, QString unit) : diff -r e841a24915ff -r be6f263fa0ab base/StorageAdviser.cpp --- a/base/StorageAdviser.cpp Mon Nov 26 14:39:16 2007 +0000 +++ b/base/StorageAdviser.cpp Mon Nov 26 17:08:38 2007 +0000 @@ -13,6 +13,8 @@ COPYING included with this distribution for more information. */ +#include + #include "StorageAdviser.h" #include "Exceptions.h" @@ -20,7 +22,7 @@ #include "system/System.h" -#include + long StorageAdviser::m_discPlanned = 0; long StorageAdviser::m_memoryPlanned = 0; diff -r e841a24915ff -r be6f263fa0ab base/TempDirectory.cpp --- a/base/TempDirectory.cpp Mon Nov 26 14:39:16 2007 +0000 +++ b/base/TempDirectory.cpp Mon Nov 26 17:08:38 2007 +0000 @@ -13,9 +13,7 @@ COPYING included with this distribution for more information. */ -#include "TempDirectory.h" -#include "system/System.h" -#include "Exceptions.h" + #include #include @@ -25,6 +23,10 @@ #include #include +#include "TempDirectory.h" +#include "system/System.h" +#include "Exceptions.h" + TempDirectory * TempDirectory::m_instance = new TempDirectory; @@ -52,26 +54,26 @@ cleanupDirectory(""); } -QString -TempDirectory::getDir() -{ - QMutexLocker locker(&m_mutex); - - QString svDirBase = ".easaier"; - QString svDir = QDir::home().filePath(svDirBase); - if (!QFileInfo(svDir).exists()) { - if (!QDir::home().mkdir(svDirBase)) { - throw DirectoryCreationFailed(QString("%1 directory in $HOME") - .arg(svDirBase)); - } - } else if (!QFileInfo(svDir).isDir()) { - throw DirectoryCreationFailed(QString("$HOME/%1 is not a directory") - .arg(svDirBase)); - } - - cleanupAbandonedDirectories(svDir); - - return svDir; +QString +TempDirectory::getDir() +{ + QMutexLocker locker(&m_mutex); + + QString svDirBase = ".easaier"; + QString svDir = QDir::home().filePath(svDirBase); + if (!QFileInfo(svDir).exists()) { + if (!QDir::home().mkdir(svDirBase)) { + throw DirectoryCreationFailed(QString("%1 directory in $HOME") + .arg(svDirBase)); + } + } else if (!QFileInfo(svDir).isDir()) { + throw DirectoryCreationFailed(QString("$HOME/%1 is not a directory") + .arg(svDirBase)); + } + + cleanupAbandonedDirectories(svDir); + + return svDir; } QString