X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=xmltooling%2Funicode.h;h=327cadca888d48bc5b5a8364c62d42f7bcb98d52;hb=a0d768778a8f5f539b909baf5b115e70ea765f0f;hp=1076abc720d3c3dd6ca8e11694e0cab31d04cc68;hpb=0c06299b0c4067705527f4d90eee69ee9b563c90;p=shibboleth%2Fcpp-xmltooling.git diff --git a/xmltooling/unicode.h b/xmltooling/unicode.h index 1076abc..327cadc 100644 --- a/xmltooling/unicode.h +++ b/xmltooling/unicode.h @@ -1,5 +1,5 @@ /* - * Copyright 2001-2009 Internet2 + * Copyright 2001-2010 Internet2 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -97,7 +97,7 @@ namespace xmltooling { /** * Default constructor. */ - auto_ptr_char() : m_buf(NULL) { + auto_ptr_char() : m_buf(nullptr) { } /** @@ -138,7 +138,7 @@ namespace xmltooling { * @return a null-terminated local code page string */ char* release() { - char* temp=m_buf; m_buf=NULL; return temp; + char* temp=m_buf; m_buf=nullptr; return temp; } private: @@ -159,7 +159,7 @@ namespace xmltooling { /** * Default constructor. */ - auto_ptr_XMLCh() : m_buf(NULL) { + auto_ptr_XMLCh() : m_buf(nullptr) { } /** @@ -200,7 +200,7 @@ namespace xmltooling { * @return a null-terminated Unicode string */ XMLCh* release() { - XMLCh* temp=m_buf; m_buf=NULL; return temp; + XMLCh* temp=m_buf; m_buf=nullptr; return temp; } private: @@ -247,7 +247,7 @@ namespace xmltooling { * @return the wrapped pointer */ T* release() { - T* temp=m_ptr; m_ptr=NULL; return temp; + T* temp=m_ptr; m_ptr=nullptr; return temp; } }; };