Eliminate warning about using a type from an anonymous namespace from another type from a non-anonymous namespace

This commit is contained in:
David Capello 2019-05-07 15:03:15 -03:00
parent 6afd31698f
commit dd405fa26d

View File

@ -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)
{