Commit 5d66d57c authored by Christoph Cullmann's avatar Christoph Cullmann

less KSharedPtr

parent 3b1f99f3
......@@ -20,7 +20,8 @@
#ifndef _KATE_LINELAYOUT_H_
#define _KATE_LINELAYOUT_H_
#include <ksharedptr.h>
#include <QSharedData>
#include <QExplicitlySharedDataPointer>
#include "katetextline.h"
......@@ -31,7 +32,7 @@ class KateDocument;
class KateTextLayout;
class KateRenderer;
class KateLineLayout : public KShared
class KateLineLayout : public QSharedData
{
public:
KateLineLayout(KateRenderer &renderer);
......@@ -117,6 +118,6 @@ private:
bool m_usePlainTextLine;
};
typedef KSharedPtr<KateLineLayout> KateLineLayoutPtr;
typedef QExplicitlySharedDataPointer<KateLineLayout> KateLineLayoutPtr;
#endif
......@@ -39,9 +39,6 @@ class KateRenderRange;
namespace KTextEditor { class Range; }
namespace Kate { class TextFolding; }
class KateLineLayout;
typedef KSharedPtr<KateLineLayout> KateLineLayoutPtr;
/**
* Handles all of the work of rendering the text
* (used for the views and printing)
......
......@@ -22,14 +22,8 @@
#include <QtGui/QTextLine>
#include <ksharedptr.h>
#include "katelinelayout.h"
class KateLineLayout;
typedef KSharedPtr<KateLineLayout> KateLineLayoutPtr;
/**
* This class represents one visible line of text; with dynamic wrapping,
* many KateTextLayouts can be needed to represent one actual line of text
......
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