]> git.tdb.fi Git - libs/gl.git/blobdiff - source/glsl/output.h
Adjust member access of the various visitors in the GLSL compiler
[libs/gl.git] / source / glsl / output.h
index 06bb5fd18f7069001b0275e29cc2d7986d40b0a5..5b03420223c3f70fb57f7f900f6708e2da5efe39 100644 (file)
@@ -8,7 +8,7 @@ namespace Msp {
 namespace GL {
 namespace SL {
 
-class Formatter: public TraversingVisitor
+class Formatter: private TraversingVisitor
 {
 private:
        Stage *stage;
@@ -28,8 +28,7 @@ private:
        void append(const std::string &);
        void append(char);
        void set_source(unsigned, unsigned);
-public:
-       using TraversingVisitor::visit;
+
        virtual void visit(Block &);
        virtual void visit(Literal &);
        virtual void visit(ParenthesizedExpression &);
@@ -52,6 +51,7 @@ public:
        virtual void visit(Iteration &);
        virtual void visit(Return &);
        virtual void visit(Jump &);
+       using TraversingVisitor::visit;
 };
 
 } // namespace SL