summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2017-07-13 09:03:36 +0200
committerMontel Laurent <[email protected]>2017-07-13 09:04:14 +0200
commitbc079193ca6a0906018073d0d8fe089e84cef6aa (patch)
treebf0aec8b2ea2c372858902d2100e4179955f522b
parente676a1d41bda370e1fefb21d24f8c1e53b397d7a (diff)
Remove unistd.h unused and create compile error on windows
-rw-r--r--plugins/fsview/tests/scantest.cpp2
-rw-r--r--settings/konqhtml/main.cpp2
-rw-r--r--settings/konqhtml/pluginopts.cpp2
-rw-r--r--src/konqcloseditem.cpp2
-rw-r--r--src/konqclosedwindowsmanager.cpp1
-rw-r--r--src/konqmainwindow.cpp2
-rw-r--r--webenginepart/src/webengineview.cpp1
7 files changed, 5 insertions, 7 deletions
diff --git a/plugins/fsview/tests/scantest.cpp b/plugins/fsview/tests/scantest.cpp
index bd40270..6fb1331 100644
--- a/plugins/fsview/tests/scantest.cpp
+++ b/plugins/fsview/tests/scantest.cpp
@@ -19,7 +19,7 @@
/* Test Directory Scanning. Usually not build. */
#include <stdio.h>
-#include <unistd.h>
+//#include <unistd.h>
#include "scan.h"
diff --git a/settings/konqhtml/main.cpp b/settings/konqhtml/main.cpp
index 063c3ed..c425d4b 100644
--- a/settings/konqhtml/main.cpp
+++ b/settings/konqhtml/main.cpp
@@ -26,7 +26,7 @@
#include "main.h"
// std
-#include <unistd.h>
+//#include <unistd.h>
// Qt
#include <QTabWidget>
diff --git a/settings/konqhtml/pluginopts.cpp b/settings/konqhtml/pluginopts.cpp
index 7873ec3..66c0459 100644
--- a/settings/konqhtml/pluginopts.cpp
+++ b/settings/konqhtml/pluginopts.cpp
@@ -14,7 +14,7 @@
// std
#include <stdio.h>
#include <stdlib.h>
-#include <unistd.h>
+//#include <unistd.h>
// Qt
#include <QtCore/QRegExp>
diff --git a/src/konqcloseditem.cpp b/src/konqcloseditem.cpp
index a604ba4..9fed10c 100644
--- a/src/konqcloseditem.cpp
+++ b/src/konqcloseditem.cpp
@@ -32,7 +32,7 @@
#include <konqpixmapprovider.h>
#include <kcolorscheme.h>
-#include <unistd.h>
+//#include <unistd.h>
#include <QFontDatabase>
class KonqIcon
diff --git a/src/konqclosedwindowsmanager.cpp b/src/konqclosedwindowsmanager.cpp
index 5babf91..fee813f 100644
--- a/src/konqclosedwindowsmanager.cpp
+++ b/src/konqclosedwindowsmanager.cpp
@@ -32,7 +32,6 @@
#include <KLocalizedString>
#include <kconfig.h>
-#include <unistd.h> // getpid
#include <QStandardPaths>
#include <KSharedConfig>
diff --git a/src/konqmainwindow.cpp b/src/konqmainwindow.cpp
index 88616f3..121b429 100644
--- a/src/konqmainwindow.cpp
+++ b/src/konqmainwindow.cpp
@@ -76,7 +76,7 @@
#include <kde_file.h>
#include <sys/types.h>
#include <sys/stat.h>
-#include <unistd.h>
+//#include <unistd.h>
#include <QDesktopServices>
#include <QFile>
diff --git a/webenginepart/src/webengineview.cpp b/webenginepart/src/webengineview.cpp
index cb8fb6e..0f92d80 100644
--- a/webenginepart/src/webengineview.cpp
+++ b/webenginepart/src/webengineview.cpp
@@ -45,7 +45,6 @@
#include <QNetworkRequest>
#include <QToolTip>
#include <QCoreApplication>
-#include <unistd.h>
#include <QMimeType>
#include <QMimeDatabase>