GLSLEditor: Replace QSharedPointer with std::shared_ptr

According to https://wiki.qt.io/Things_To_Look_Out_For_In_Reviews
QSharedPointer impl is poor and it's going to be removed from Qt 7.

Change-Id: I4fe1d82d7aa610b4ee40864bec029bf0e68e5096
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Jarek Kobus
2024-02-01 17:27:15 +01:00
parent bffd6431e3
commit f8e14c9fce

View File

@@ -10,8 +10,6 @@
#include <texteditor/codeassist/iassistprocessor.h> #include <texteditor/codeassist/iassistprocessor.h>
#include <texteditor/codeassist/ifunctionhintproposalmodel.h> #include <texteditor/codeassist/ifunctionhintproposalmodel.h>
#include <QSharedPointer>
namespace GLSL { namespace GLSL {
class Engine; class Engine;
class Function; class Function;
@@ -27,7 +25,7 @@ namespace Internal {
class Document class Document
{ {
public: public:
using Ptr = QSharedPointer<Document>; using Ptr = std::shared_ptr<Document>;
~Document(); ~Document();