Commit 7db2e691 authored by Volker Krause's avatar Volker Krause
Browse files

Remove std::unique_ptr compatibility workaround for qGetPtrHelper

With Qt 5.15 this works out of the box.
parent 4212069e
......@@ -9,8 +9,6 @@
#include <QAbstractListModel>
#include "pointer_helper_p.h"
namespace KPublicTransport {
class Manager;
......
/*
SPDX-FileCopyrightText: 2019 Volker Krause <vkrause@kde.org>
SPDX-License-Identifier: LGPL-2.0-or-later
*/
#ifndef KPUBLICTRANSPORT_POINTER_HELPER_P_H
#define KPUBLICTRANSPORT_POINTER_HELPER_P_H
#include <qglobal.h>
#include <memory>
template <typename T>
static inline typename std::unique_ptr<T>::pointer qGetPtrHelper(const std::unique_ptr<T> &p)
{
return p.get();
}
#endif
......@@ -8,7 +8,6 @@
#define KPUBLICTRANSPORT_REPLY_P_H
#include "reply.h"
#include "pointer_helper_p.h"
#include <KPublicTransport/Attribution>
......
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