Corrected compile error
This commit is contained in:
parent
0c3f6e0432
commit
37a5afb870
@ -815,8 +815,12 @@ class PAEVStepsInterpreter:public Interpreter {
|
|||||||
public:
|
public:
|
||||||
PAEVStepsInterpreter(){}
|
PAEVStepsInterpreter(){}
|
||||||
virtual std::string toString (Tag* t) {
|
virtual std::string toString (Tag* t) {
|
||||||
strcpy(buffer, (t->toInt(0,BYTE) & 0x20)?"1/3 EV steps":"1/2 EV steps");
|
std::ostringstream str;
|
||||||
return buffer;
|
if( t->toInt(0,BYTE) & 0x20 )
|
||||||
|
str << "1/3 EV steps";
|
||||||
|
else
|
||||||
|
str << "1/2 EV steps";
|
||||||
|
return str.str();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
PAEVStepsInterpreter paEVStepsInterpreter;
|
PAEVStepsInterpreter paEVStepsInterpreter;
|
||||||
@ -825,8 +829,12 @@ class PAEDialinInterpreter:public Interpreter {
|
|||||||
public:
|
public:
|
||||||
PAEDialinInterpreter(){}
|
PAEDialinInterpreter(){}
|
||||||
virtual std::string toString (Tag* t) {
|
virtual std::string toString (Tag* t) {
|
||||||
strcpy(buffer, (t->toInt(0,BYTE) & 0x40)?"P Shift":"Tv or Av");
|
std::ostringstream str;
|
||||||
return buffer;
|
if( t->toInt(0,BYTE) & 0x40 )
|
||||||
|
str << "P Shift";
|
||||||
|
else
|
||||||
|
str << "Tv or Av";
|
||||||
|
return str.str();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
PAEDialinInterpreter paEDialinInterpreter;
|
PAEDialinInterpreter paEDialinInterpreter;
|
||||||
@ -835,8 +843,12 @@ class PAApertureRingUseInterpreter: public Interpreter {
|
|||||||
public:
|
public:
|
||||||
PAApertureRingUseInterpreter(){}
|
PAApertureRingUseInterpreter(){}
|
||||||
virtual std::string toString (Tag* t) {
|
virtual std::string toString (Tag* t) {
|
||||||
strcpy(buffer, (t->toInt(0,BYTE) & 0x80)?"Permitted":"Prohibited");
|
std::ostringstream str;
|
||||||
return buffer;
|
if( t->toInt(0,BYTE) & 0x80 )
|
||||||
|
str << "Permitted";
|
||||||
|
else
|
||||||
|
str << "Prohibited";
|
||||||
|
return str.str();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
PAApertureRingUseInterpreter paApertureRingUseInterpreter;
|
PAApertureRingUseInterpreter paApertureRingUseInterpreter;
|
||||||
@ -960,7 +972,7 @@ class PAAFPointSelectedInterpreter: public Interpreter {
|
|||||||
public:
|
public:
|
||||||
PAAFPointSelectedInterpreter(){}
|
PAAFPointSelectedInterpreter(){}
|
||||||
virtual std::string toString (Tag* t) {
|
virtual std::string toString (Tag* t) {
|
||||||
char *ps[]={"Upper-left","Top","Upper-right","Left","Mid-left","Center","Mid-right","Right","Lower-left","Bottom","Lower-right"};
|
const char *ps[]={"Upper-left","Top","Upper-right","Left","Mid-left","Center","Mid-right","Right","Lower-left","Bottom","Lower-right"};
|
||||||
int c = t->toInt(0,SHORT);
|
int c = t->toInt(0,SHORT);
|
||||||
if( !c )
|
if( !c )
|
||||||
return "Auto";
|
return "Auto";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user