Don't export includes unless needed.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18815 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Dominik Riebeling 2008-10-15 18:37:26 +00:00
parent 51b45d5602
commit 5491273f86
2 changed files with 11 additions and 9 deletions

View file

@ -20,6 +20,9 @@
#include <QtCore>
#include "autodetection.h"
#include "../ipodpatcher/ipodpatcher.h"
#include "../sansapatcher/sansapatcher.h"
#if defined(Q_OS_LINUX) || defined(Q_OS_MACX)
#include <stdio.h>
#include <usb.h>
@ -47,7 +50,6 @@
Autodetection::Autodetection(QObject* parent): QObject(parent)
{
}
bool Autodetection::detect()
@ -190,7 +192,8 @@ bool Autodetection::detect()
free(sansa_sectorbuf);
sansa_sectorbuf = NULL;
if(m_mountpoint.isEmpty() && m_device.isEmpty() && m_errdev.isEmpty() && m_incompat.isEmpty())
if(m_mountpoint.isEmpty() && m_device.isEmpty()
&& m_errdev.isEmpty() && m_incompat.isEmpty())
return false;
return true;
}
@ -389,3 +392,4 @@ bool Autodetection::detectAjbrec(QString root)
if(m_device.isEmpty()) return false;
return true;
}

View file

@ -26,9 +26,6 @@
#include <QtCore>
#include "rbsettings.h"
#include "../ipodpatcher/ipodpatcher.h"
#include "../sansapatcher/sansapatcher.h"
class Autodetection :public QObject
{
Q_OBJECT
@ -61,3 +58,4 @@ private:
#endif /*AUTODETECTION_H_*/