OSDN Git Service

do not guard QLibraryInfo class with QT_NO_SETTINGS definition
authorIvailo Monev <xakepa10@laimg.moc>
Sun, 28 Jun 2020 16:15:24 +0000 (16:15 +0000)
committerIvailo Monev <xakepa10@laimg.moc>
Sun, 28 Jun 2020 16:15:24 +0000 (16:15 +0000)
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
src/core/global/qlibraryinfo.cpp
src/core/global/qlibraryinfo.h

index ca1fa5f..b52998c 100644 (file)
 **
 ****************************************************************************/
 
-#include "qdir.h"
-#include "qfile.h"
 #include "qlibraryinfo.h"
-#include "qcoreapplication.h"
 
 #include "qconfig.cpp"
 
 QT_BEGIN_NAMESPACE
 
-#ifndef QT_NO_SETTINGS
-
 /*!
     \class QLibraryInfo
     \brief The QLibraryInfo class provides information about the Katie library.
@@ -169,6 +164,4 @@ QString QLibraryInfo::location(LibraryLocation loc)
     Q_UNREACHABLE();
 }
 
-#endif // QT_NO_SETTINGS
-
 QT_END_NAMESPACE
index bce0b9b..5ddaefc 100644 (file)
@@ -41,9 +41,6 @@ QT_BEGIN_HEADER
 
 QT_BEGIN_NAMESPACE
 
-
-#ifndef QT_NO_SETTINGS
-
 class Q_CORE_EXPORT QLibraryInfo
 {
 public:
@@ -73,8 +70,6 @@ private:
     Q_DISABLE_COPY(QLibraryInfo);
 };
 
-#endif /* QT_NO_SETTINGS */
-
 QT_END_NAMESPACE
 
 QT_END_HEADER