Cppcheck: Fix most issues in rtexif/*

This commit is contained in:
heckflosse
2016-10-03 21:01:26 +02:00
parent 95027d2884
commit 260cd290fb
6 changed files with 29 additions and 33 deletions

View File

@@ -1911,12 +1911,12 @@ public:
PAAFPointSelectedInterpreter() {}
virtual std::string toString (Tag* t)
{
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);
if( !c ) {
return "Auto";
} else {
const char *ps[] = {"Upper-left", "Top", "Upper-right", "Left", "Mid-left", "Center", "Mid-right", "Right", "Lower-left", "Bottom", "Lower-right"};
for( int iBit = 0; iBit < 11; iBit++)
if( c & (1 << iBit) ) {
return ps[iBit];