Commit 7f8c6601 authored by Yuri Chornoivan's avatar Yuri Chornoivan
Browse files

Fix minor issues found by EBN

parent d79c8e86
......@@ -28,6 +28,9 @@
**
** etcetera .....
*/
#ifndef KSYSGUARD_ATOP_P_H
#define KSYSGUARD_ATOP_P_H
#define ATOPLOGMAGIC (unsigned int) 0xfeedbeef
#define PNAMLEN 15
#define CMDLEN 68
......@@ -159,4 +162,4 @@ struct PInfo {
PStat pstat; /* per-process statistics */
};
#endif // KSYSGUARD_ATOP_P_H
......@@ -20,6 +20,9 @@
*/
#ifndef KSYSGUARD_HELPER_H
#define KSYSGUARD_HELPER_H
#include <kauth.h>
#include <QObject>
......@@ -40,3 +43,5 @@ class KSysGuardProcessListHelper : public QObject {
};
Q_DECLARE_METATYPE( QList<long long> )
#endif // KSYSGUARD_HELPER_H
......@@ -47,7 +47,6 @@
#include <pwd.h>
#include <procfs.h>
#include <sys/proc.h>
#include <sys/resource.h>
#define PROCESS_BUFFER_SIZE 512
#define PROCDIR "/proc"
......
......@@ -26,6 +26,8 @@
// SVG support causes it to crash at the moment :(
//#define SVG_SUPPORT
// Use a separate child widget to draw the graph in
#ifndef KSYSGUARD_KSIGNALPLOTTER_P_H
#define KSYSGUARD_KSIGNALPLOTTER_P_H
#ifndef GRAPHICS_SIGNAL_PLOTTER
#define USE_SEPERATE_WIDGET
......@@ -150,3 +152,4 @@ class GraphWidget : public QWidget {
};
#endif
#endif //KSYSGUARD_KSIGNALPLOTTER_P_H
#ifndef GRAPHICSSIGNALPLOTTERBENCHMARK_H
#define GRAPHICSSIGNALPLOTTERBENCHMARK_H
#include <QtTest>
#include <Qt>
......@@ -20,3 +22,5 @@ class BenchmarkGraphicsSignalPlotter : public QObject
QGraphicsScene *scene;
};
#endif // GRAPHICSSIGNALPLOTTERBENCHMARK_H
#ifndef KSYSGUARD_KSYSGUARDDTEST_H
#define KSYSGUARD_KSYSGUARDDTEST_H
#include <QtTest>
#include <Qt>
......@@ -65,3 +67,5 @@ struct SensorClientTest : public KSGRD::SensorClient
bool haveAnswer;
QList<Answer> answers;
};
#endif // KSYSGUARD_KSYSGUARDDTEST_H
......@@ -17,8 +17,8 @@
Boston, MA 02110-1301, USA.
*/
#ifndef TESTPROCESS_H
#define TESTPROCESS_H
#ifndef PROCESSTEST_H
#define PROCESSTEST_H
#include <QObject>
namespace KSysGuard
......
#ifndef KSYSGUARD_SIGNALPLOTTERBENCHMARK_H
#define KSYSGUARD_SIGNALPLOTTERBENCHMARK_H
#include <QtTest>
#include <Qt>
......@@ -16,3 +18,5 @@ class BenchmarkSignalPlotter : public QObject
private:
KSignalPlotter *s;
};
#endif // KSYSGUARD_SIGNALPLOTTERBENCHMARK_H
#ifndef KSYSGUARD_SIGNALPLOTTERTEST_H
#define KSYSGUARD_SIGNALPLOTTERTEST_H
#include <QtTest>
#include <Qt>
......@@ -27,3 +29,5 @@ class TestSignalPlotter : public QObject
private:
KSignalPlotter *s;
};
#endif // KSYSGUARD_SIGNALPLOTTERTEST_H
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment