free(lp);
}
-static int LoadPlugins(QComboBox * cb, GVC_t * gvc, char *kind,
- char *more[], char *prefer)
+static int LoadPlugins(QComboBox * cb, GVC_t * gvc, const char *kind,
+ const char *more[], const char *prefer)
{
int count;
char **lp = gvPluginList(gvc, kind, &count, NULL);
/* Add additional items if supplied */
if (more) {
int i = 0;
- char *s;
+ const char *s;
while ((s = more[i++])) {
cb->addItem(QString(s));
}
}
-static char *xtra[] = {
+static const char *xtra[] = {
"NONE",
- (char *) 0
+ (const char *) NULL
};
CMainWindow::CMainWindow(char*** Files)
// (QComboBox*)frmSettings->findChild<QComboBox*>("cbLayout")
QComboBox *cb =
(QComboBox *) frmSettings->findChild < QComboBox * >("cbLayout");
- dfltLayoutIdx = LoadPlugins(cb, frmSettings->gvc, "layout", 0, "dot");
+ dfltLayoutIdx = LoadPlugins(cb, frmSettings->gvc, "layout", NULL, "dot");
cb = (QComboBox *) frmSettings->findChild <
QComboBox * >("cbExtension");
dfltRenderIdx =
* At present, the str argument is unused, but may be used to modify
* the search as in gvplugin_list above.
*/
-extern char** gvPluginList (GVC_t *gvc, char* kind, int* sz, char*);
+extern char** gvPluginList (GVC_t *gvc, const char* kind, int* sz, char*);
/** Add a library from your user application
* @param gvc Graphviz context to add library to
* At present, the str argument is unused, but may be used to modify
* the search as in gvplugin_list above.
*/
-char **gvPluginList(GVC_t * gvc, char *kind, int *sz, const char *str)
+char **gvPluginList(GVC_t * gvc, const char *kind, int *sz, const char *str)
{
int api;
gvplugin_available_t **pnext, **plugin;