X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=shibsp%2Fattribute%2FXMLAttributeDecoder.cpp;h=8c192c57ce7720b8edc4f91d0cbf4d6e5a90f653;hb=a62c416b6ecfc17d89853a8f14604249c94d2f60;hp=4c999388dacadba06e1de3901c00e9a00aaa7070;hpb=e6311b71b669e8924d6a81baf5c2bb2d98166f42;p=shibboleth%2Fsp.git diff --git a/shibsp/attribute/XMLAttributeDecoder.cpp b/shibsp/attribute/XMLAttributeDecoder.cpp index 4c99938..8c192c5 100644 --- a/shibsp/attribute/XMLAttributeDecoder.cpp +++ b/shibsp/attribute/XMLAttributeDecoder.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2009 Internet2 + * Copyright 2009-2010 Internet2 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -41,7 +41,7 @@ namespace shibsp { ~XMLAttributeDecoder() {} Attribute* decode( - const vector& ids, const XMLObject* xmlObject, const char* assertingParty=NULL, const char* relyingParty=NULL + const vector& ids, const XMLObject* xmlObject, const char* assertingParty=nullptr, const char* relyingParty=nullptr ) const; private: @@ -62,7 +62,7 @@ Attribute* XMLAttributeDecoder::decode( ) const { if (!xmlObject) - return NULL; + return nullptr; Category& log = Category::getInstance(SHIBSP_LOGCAT".AttributeDecoder.XML"); @@ -86,7 +86,7 @@ Attribute* XMLAttributeDecoder::decode( else { log.warn("skipping XMLObject without a backing DOM"); } - return dest.empty() ? NULL : _decode(attr.release()); + return dest.empty() ? nullptr : _decode(attr.release()); } vector::const_iterator v,stop; @@ -120,7 +120,7 @@ Attribute* XMLAttributeDecoder::decode( } else { log.warn("XMLObject type not recognized by XMLAttributeDecoder, no values returned"); - return NULL; + return nullptr; } } @@ -134,5 +134,5 @@ Attribute* XMLAttributeDecoder::decode( log.warn("skipping AttributeValue without a backing DOM"); } - return dest.empty() ? NULL : _decode(attr.release()); + return dest.empty() ? nullptr : _decode(attr.release()); }