]> granicus.if.org Git - graphviz/commitdiff
remove const qualifier from Visio::Render::AddGraphic argument
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Thu, 1 Apr 2021 01:23:45 +0000 (18:23 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Wed, 7 Apr 2021 04:30:38 +0000 (21:30 -0700)
This pointer is not treated as const internally by Visio::Render. This is a step
towards removing manual memory management of Graphic pointers.

plugin/visio/VisioRender.cpp
plugin/visio/VisioRender.h

index b7bf1e6cdb429a80bd14103158fe21906f72e3d0..5d2e8df485c5416e9611fea54530daf9005f6d5a 100644 (file)
@@ -252,7 +252,7 @@ namespace Visio
                _hyperlinks.clear();
        }
        
-       void Render::AddGraphic(GVJ_t* job, const Graphic* graphic)
+       void Render::AddGraphic(GVJ_t* job, Graphic* graphic)
        {
                if (_inComponent)
                        /* if in component, accumulate for end node/edge */
index 5351bc77b3b9f00e03967816f51101b97c92b031..aa57b778bf799df82987c9256a286e4a35e556cd 100644 (file)
@@ -53,7 +53,7 @@ namespace Visio
        private:
                /* graphics and texts maintenance */
                void ClearGraphicsAndTexts();
-               void AddGraphic(GVJ_t* job, const Graphic* graphic);
+               void AddGraphic(GVJ_t* job, Graphic* graphic);
                void AddText(GVJ_t* job, const Text* text);
                void AddHyperlink(GVJ_t* job, const Hyperlink* hyperlink);