mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-06 06:58:15 +00:00
Eliminate warning about using a type from an anonymous namespace from another type from a non-anonymous namespace
This commit is contained in:
parent
6afd31698f
commit
dd405fa26d
@ -27,12 +27,6 @@ namespace tools {
|
||||
using namespace gfx;
|
||||
using namespace filters;
|
||||
|
||||
namespace {
|
||||
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
// Ink Processing
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
|
||||
class BaseInkProcessing {
|
||||
public:
|
||||
virtual ~BaseInkProcessing() { }
|
||||
@ -41,6 +35,14 @@ public:
|
||||
virtual void prepareForPointShape(ToolLoop* loop, bool firstPoint, int x, int y) { }
|
||||
};
|
||||
|
||||
typedef std::unique_ptr<BaseInkProcessing> InkProcessingPtr;
|
||||
|
||||
namespace {
|
||||
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
// Ink Processing
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
|
||||
template<typename Derived>
|
||||
class InkProcessing : public BaseInkProcessing {
|
||||
public:
|
||||
@ -1280,8 +1282,6 @@ void BrushInkProcessing<IndexedTraits>::processPixel(int x, int y) {
|
||||
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
|
||||
typedef std::unique_ptr<BaseInkProcessing> InkProcessingPtr;
|
||||
|
||||
template<template<typename> class T>
|
||||
BaseInkProcessing* get_ink_proc(ToolLoop* loop)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user