X-Git-Url: https://git.teslayout.com/public/public/public/?a=blobdiff_plain;f=source%2Fdiameter.comm%2FClassCode.cpp;h=6f75663a8235c4ad041d3cef2145b3552a5c048d;hb=5a6cba5fde2b2f538a7515f8293cc0a8d9589dfa;hp=0c8cfc05707bb7b940cb3e53ccb67f1d4a96f6a6;hpb=93366a0bda79e6fd6e7dad6316bfcf8cc82f5731;p=anna.git diff --git a/source/diameter.comm/ClassCode.cpp b/source/diameter.comm/ClassCode.cpp index 0c8cfc0..6f75663 100644 --- a/source/diameter.comm/ClassCode.cpp +++ b/source/diameter.comm/ClassCode.cpp @@ -12,15 +12,15 @@ using namespace std; //string anna::diameter::comm::ClassCode::asString(const ClassCode::_v v) -//throw() { +//{ // static const char* text [] = { "Undefined", "Bind", "ApplicationMessage" }; // string result("ClassCode: "); -// return result += (v >= Min && v < Max) ? text [v] : ""; +// return result += (v >= Min && v < Max) ? text [v] : "[null]"; //} string anna::diameter::comm::ClassCode::asText(const ClassCode::_v v) -throw() { +{ static const char* text [] = { "Undefined", "Bind", "ApplicationMessage" }; - return string((v >= Min && v < Max) ? text [v] : ""); + return string((v >= Min && v < Max) ? text [v] : "[null]"); }