Tag bug with duplicated class variable names
Posted: Fri Nov 12, 2004 3:13 pm
If 2 different classes have a variable of the same name, then "Find Current Word" always naviagates to the same class.
Example
****my_class1.h***
class my_class1
{
void class1_routine(int para);
STATE my_states[3];
};
****my_class2.h***
class my_class2
{
void class2_routine(void);
STATE my_states[5];
};
****my_class1.cpp***
void class1 :: class1_routine( int para)
{
// SELECT my_state POSITION #1,
my_state[0].method();
}
****my_class2.cpp***
void class2 :: class2_routine( void )
{
// SELECT my_state POSITION #2
my_state[0].method();
}
Selecting my_state from position 1 or 2 will naviagate to the same class header file, even thought the classes are different.
Example
****my_class1.h***
class my_class1
{
void class1_routine(int para);
STATE my_states[3];
};
****my_class2.h***
class my_class2
{
void class2_routine(void);
STATE my_states[5];
};
****my_class1.cpp***
void class1 :: class1_routine( int para)
{
// SELECT my_state POSITION #1,
my_state[0].method();
}
****my_class2.cpp***
void class2 :: class2_routine( void )
{
// SELECT my_state POSITION #2
my_state[0].method();
}
Selecting my_state from position 1 or 2 will naviagate to the same class header file, even thought the classes are different.