Fix typo: Strorage -> Storage

parent 442ad337
......@@ -31,8 +31,8 @@
class KoResource;
class KoResourceLoaderThread;
typedef KoResourceServer<KisBrush, SharedPointerStroragePolicy<KisBrushSP> > KisBrushResourceServer;
typedef KoResourceServerAdapter<KisBrush, SharedPointerStroragePolicy<KisBrushSP> > KisBrushResourceServerAdapter;
typedef KoResourceServer<KisBrush, SharedPointerStoragePolicy<KisBrushSP> > KisBrushResourceServer;
typedef KoResourceServerAdapter<KisBrush, SharedPointerStoragePolicy<KisBrushSP> > KisBrushResourceServerAdapter;
/**
*
......
......@@ -31,7 +31,7 @@ class QString;
class KisPaintopBox;
class KisPaintOpPreset;
class KisFavoriteResourceManager : public QObject, public KoResourceServerObserver<KisPaintOpPreset, SharedPointerStroragePolicy<KisPaintOpPresetSP> >
class KisFavoriteResourceManager : public QObject, public KoResourceServerObserver<KisPaintOpPreset, SharedPointerStoragePolicy<KisPaintOpPresetSP> >
{
Q_OBJECT
......
......@@ -77,8 +77,8 @@
typedef KoResourceServerSimpleConstruction<KisPaintOpPreset, SharedPointerStroragePolicy<KisPaintOpPresetSP> > KisPaintOpPresetResourceServer;
typedef KoResourceServerAdapter<KisPaintOpPreset, SharedPointerStroragePolicy<KisPaintOpPresetSP> > KisPaintOpPresetResourceServerAdapter;
typedef KoResourceServerSimpleConstruction<KisPaintOpPreset, SharedPointerStoragePolicy<KisPaintOpPresetSP> > KisPaintOpPresetResourceServer;
typedef KoResourceServerAdapter<KisPaintOpPreset, SharedPointerStoragePolicy<KisPaintOpPresetSP> > KisPaintOpPresetResourceServerAdapter;
KisPaintopBox::KisPaintopBox(KisViewManager *view, QWidget *parent, const char *name)
: QWidget(parent)
......
......@@ -43,8 +43,8 @@
#include <kis_brush_server.h>
typedef KoResourceServerSimpleConstruction<KisPaintOpPreset, SharedPointerStroragePolicy<KisPaintOpPresetSP> > KisPaintOpPresetResourceServer;
typedef KoResourceServerAdapter<KisPaintOpPreset, SharedPointerStroragePolicy<KisPaintOpPresetSP> > KisPaintOpPresetResourceServerAdapter;
typedef KoResourceServerSimpleConstruction<KisPaintOpPreset, SharedPointerStoragePolicy<KisPaintOpPresetSP> > KisPaintOpPresetResourceServer;
typedef KoResourceServerAdapter<KisPaintOpPreset, SharedPointerStoragePolicy<KisPaintOpPresetSP> > KisPaintOpPresetResourceServerAdapter;
inline bool isRunningInKrita() {
......
......@@ -34,8 +34,8 @@ class KoResourceLoaderThread;
class KisWorkspaceResource;
class KisPSDLayerStyleCollectionResource;
typedef KoResourceServerSimpleConstruction<KisPaintOpPreset, SharedPointerStroragePolicy<KisPaintOpPresetSP> > KisPaintOpPresetResourceServer;
typedef KoResourceServerAdapter<KisPaintOpPreset, SharedPointerStroragePolicy<KisPaintOpPresetSP> > KisPaintOpPresetResourceServerAdapter;
typedef KoResourceServerSimpleConstruction<KisPaintOpPreset, SharedPointerStoragePolicy<KisPaintOpPresetSP> > KisPaintOpPresetResourceServer;
typedef KoResourceServerAdapter<KisPaintOpPreset, SharedPointerStoragePolicy<KisPaintOpPresetSP> > KisPaintOpPresetResourceServerAdapter;
class KRITAUI_EXPORT KisResourceServerProvider : public QObject
{
......
......@@ -117,18 +117,18 @@ protected:
* of a resource is handled. There are to predefined policies:
*
* o PointerStroragePolicy --- usual pointers with ownership over
* the resource.
* o PointerStoragePolicy --- usual pointers with ownership over
* the resource.
* o SharedPointerStroragePolicy --- shared pointers. The server does no
* extra handling for the lifetime of
* the resource.
* o SharedPointerStoragePolicy --- shared pointers. The server does no
* extra handling for the lifetime of
* the resource.
*
* Use the former for usual resources and the latter for shared pointer based
* ones.
*/
template <class T, class Policy = PointerStroragePolicy<T> >
template <class T, class Policy = PointerStoragePolicy<T> >
class KoResourceServer : public KoResourceServerBase
{
public:
......@@ -687,7 +687,7 @@ private:
};
template <class T, class Policy = PointerStroragePolicy<T> >
template <class T, class Policy = PointerStoragePolicy<T> >
class KoResourceServerSimpleConstruction : public KoResourceServer<T, Policy>
{
public:
......
......@@ -89,7 +89,7 @@ protected:
* The KoResourceServerAdapter provides adapter to a specific resource server
* It provides a resource type independent interface to the server.
*/
template <class T, class Policy = PointerStroragePolicy<T> >
template <class T, class Policy = PointerStoragePolicy<T> >
class KoResourceServerAdapter : public KoAbstractResourceServerAdapter, public KoResourceServerObserver<T, Policy>
{
typedef KoResourceServer<T, Policy> ServerType;
......
......@@ -29,7 +29,7 @@
* The KoResourceServerObserver class provides a interface to observe a KoResourceServer.
* To receive notifications it needs to be added to the resource server.
*/
template <class T, class Policy = PointerStroragePolicy<T> >
template <class T, class Policy = PointerStoragePolicy<T> >
class KoResourceServerObserver
{
public:
......
......@@ -24,7 +24,7 @@
class KoResource;
template <class T> struct PointerStroragePolicy
template <class T> struct PointerStoragePolicy
{
typedef T* PointerType;
static inline void deleteResource(PointerType resource) {
......@@ -35,7 +35,7 @@ template <class T> struct PointerStroragePolicy
}
};
template <class SharedPointer> struct SharedPointerStroragePolicy
template <class SharedPointer> struct SharedPointerStoragePolicy
{
typedef SharedPointer PointerType;
static inline void deleteResource(PointerType resource) {
......
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