[utilities/krusader] /: Dissolve no longer needed compat helper macro QT_ENDL
Toni Asensi Esteve <[email protected]>
| Newsgroups | gmane.comp.kde.cvs |
|---|---|
| Message-ID | <[email protected]> |
Git commit 7c930e0b9bb1648f1586979acdbf2dfa712419ce by Toni Asensi Esteve, on behalf of Friedrich W. H. Kossebau.
Committed on 19/07/2026 at 23:02.
Pushed by asensi into branch 'master'.
Dissolve no longer needed compat helper macro QT_ENDL
M +0 -14 app/compat.h
M +1 -2 plugins/krarc/krarc.cpp
https://invent.kde.org/utilities/krusader/-/commit/7c930e0b9bb1648f1586979acdbf2dfa712419ce
diff --git a/app/compat.h b/app/compat.h
index c6889714e..5d3d3c7bf 100644
--- a/app/compat.h
+++ b/app/compat.h
@@ -7,20 +7,6 @@
#ifndef _COMPAT_H_
#define _COMPAT_H_
-/**
- * QTextSteam::endl() was made obsoleted in QT 5.15 in
- * favor of the namespaced Qt::endl
- *
- * https://doc.qt.io/qt-5.15/qtextstream-obsolete.html#endl
- *
- * This can be removed when the qt minimum version required will be >= 5.15
- */
-#if QT_VERSION >= QT_VERSION_CHECK(5, 15, 0)
-#define QT_ENDL Qt::endl
-#else
-#define QT_ENDL endl
-#endif
-
/**
* QComboBox::activated(const QString &text) was made obsoleted in QT 5.15 in
* favor of QComboBox::textActivated(const QString &text)
diff --git a/plugins/krarc/krarc.cpp b/plugins/krarc/krarc.cpp
index 2b061718f..3550bb732 100644
--- a/plugins/krarc/krarc.cpp
+++ b/plugins/krarc/krarc.cpp
@@ -32,7 +32,6 @@
#include <kio_version.h>
-#include "../../app/compat.h"
#include <errno.h>
#define MAX_IPC_SIZE (1024 * 32)
@@ -126,7 +125,7 @@ public:
int Q_DECL_EXPORT kdemain(int argc, char **argv)
{
if (argc != 4) {
- qWarning() << "Usage: kio_krarc protocol domain-socket1 domain-socket2" << QT_ENDL;
+ qWarning() << "Usage: kio_krarc protocol domain-socket1 domain-socket2" << Qt::endl;
exit(-1);
}