X-Git-Url: https://git.teslayout.com/public/public/public/?p=anna.git;a=blobdiff_plain;f=source%2Fdiameter.comm%2FClassCode.cpp;h=40d2c3721610b5301e03589a069dc92c7e85c714;hp=0c8cfc05707bb7b940cb3e53ccb67f1d4a96f6a6;hb=e782294456d0877aa8fc05aa931291ac79808eb3;hpb=7618e65d62aa5231b9399d6e361e884c38f49285 diff --git a/source/diameter.comm/ClassCode.cpp b/source/diameter.comm/ClassCode.cpp index 0c8cfc0..40d2c37 100644 --- a/source/diameter.comm/ClassCode.cpp +++ b/source/diameter.comm/ClassCode.cpp @@ -15,12 +15,12 @@ using namespace std; //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]"); }