Skip to content

Commit

Permalink
Fix invalid conversion from ‘const char*’ in statemachineviewer plugin
Browse files Browse the repository at this point in the history
See issue #17
(cherry picked from commit 4287d89)
  • Loading branch information
jcfr authored and winterz committed Jul 31, 2012
1 parent 09d3f1d commit c250ed0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/statemachineviewer/gvgraph/gvutils.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ static inline Agsym_t *_agedgeattr(Agraph_t *object, QString attr, QString alt=Q

static inline int _gvLayout(GVC_t *gvc, graph_t *g, const char *engine)
{
return gvLayout(gvc, g, engine);
return gvLayout(gvc, g, const_cast<char*>(engine));
}

static inline Agnode_t *_agnode(Agraph_t *graph, const QString &attr)
Expand Down

0 comments on commit c250ed0

Please sign in to comment.