Commit f1f25bed authored by claes's avatar claes

const char was missing in virtual function set_trace_attr

parent bfbc1bb7
/* /*
* Proview $Id: flow_con.h,v 1.5 2008-10-31 12:51:33 claes Exp $ * Proview $Id: flow_con.h,v 1.6 2008-12-03 12:01:21 claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB. * Copyright (C) 2005 SSAB Oxelsund AB.
* *
* This program is free software; you can redistribute it and/or * This program is free software; you can redistribute it and/or
...@@ -190,7 +190,7 @@ class FlowCon : public FlowArrayElem { ...@@ -190,7 +190,7 @@ class FlowCon : public FlowArrayElem {
void *user_data; void *user_data;
void set_user_data( void *data) { user_data = data;}; void set_user_data( void *data) { user_data = data;};
void get_user_data( void **data) { *data = user_data;}; void get_user_data( void **data) { *data = user_data;};
void set_trace_attr( char *object, char *attribute, flow_eTraceType type, int inverted) void set_trace_attr( const char *object, const char *attribute, flow_eTraceType type, int inverted)
{ strncpy( trace_object, object, sizeof( trace_object)); { strncpy( trace_object, object, sizeof( trace_object));
strncpy( trace_attribute, attribute, sizeof( trace_attribute)); strncpy( trace_attribute, attribute, sizeof( trace_attribute));
trace_attr_type = type;}; trace_attr_type = type;};
......
/* /*
* Proview $Id: flow_conpoint.cpp,v 1.5 2008-10-31 12:51:33 claes Exp $ * Proview $Id: flow_conpoint.cpp,v 1.6 2008-12-03 12:01:21 claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB. * Copyright (C) 2005 SSAB Oxelsund AB.
* *
* This program is free software; you can redistribute it and/or * This program is free software; you can redistribute it and/or
...@@ -126,7 +126,7 @@ int FlowConPoint::get_conpoint( int num, double *x, double *y, ...@@ -126,7 +126,7 @@ int FlowConPoint::get_conpoint( int num, double *x, double *y,
return 0; return 0;
} }
void FlowConPoint::set_trace_attr( char *object, char *attribute, void FlowConPoint::set_trace_attr( const char *object, const char *attribute,
flow_eTraceType type, int inverted) flow_eTraceType type, int inverted)
{ {
strncpy( trace_attribute, attribute, sizeof( trace_attribute)); strncpy( trace_attribute, attribute, sizeof( trace_attribute));
......
/* /*
* Proview $Id: flow_conpoint.h,v 1.6 2008-10-31 12:51:33 claes Exp $ * Proview $Id: flow_conpoint.h,v 1.7 2008-12-03 12:01:21 claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB. * Copyright (C) 2005 SSAB Oxelsund AB.
* *
* This program is free software; you can redistribute it and/or * This program is free software; you can redistribute it and/or
...@@ -54,7 +54,7 @@ class FlowConPoint : public FlowArrayElem { ...@@ -54,7 +54,7 @@ class FlowConPoint : public FlowArrayElem {
double *x_left, double *y_high, double *y_low, void *node) {}; double *x_left, double *y_high, double *y_low, void *node) {};
int get_conpoint( int num, double *x, double *y, flow_eDirection *dir); int get_conpoint( int num, double *x, double *y, flow_eDirection *dir);
flow_eObjectType type() { return flow_eObjectType_ConPoint;}; flow_eObjectType type() { return flow_eObjectType_ConPoint;};
void set_trace_attr( char *object, char *attribute, flow_eTraceType type, int inverted); void set_trace_attr( const char *object, const char *attribute, flow_eTraceType type, int inverted);
void get_trace_attr( char *object, char *attribute, flow_eTraceType *type, int *inverted); void get_trace_attr( char *object, char *attribute, flow_eTraceType *type, int *inverted);
FlowCtx *ctx; FlowCtx *ctx;
int number; int number;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment