Skip to content

Commit

Permalink
Handle Unkown enum declaration in switch
Browse files Browse the repository at this point in the history
  • Loading branch information
gierschv committed Sep 4, 2011
1 parent bda6e48 commit 8433bd8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion gsmlib/gsm_cb.cc
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ CBDataCodingScheme::CBDataCodingScheme(unsigned char dcs) : _dcs(dcs)
_language = (Language)_dcs;
}
else
_language = Unknown;
_language = (Language)Unknown;
}

std::string CBDataCodingScheme::toString() const
Expand Down Expand Up @@ -84,6 +84,9 @@ std::string CBDataCodingScheme::toString() const
case Turkish:
result += _("Turkish");
break;
case Unknown:
result += _("Unknown");
break;
}
result += " ";
switch (getAlphabet())
Expand Down

0 comments on commit 8433bd8

Please sign in to comment.