/*
- * 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.
/**
* Default constructor.
*/
- auto_ptr_char() : m_buf(NULL) {
+ auto_ptr_char() : m_buf(nullptr) {
}
/**
* @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:
/**
* Default constructor.
*/
- auto_ptr_XMLCh() : m_buf(NULL) {
+ auto_ptr_XMLCh() : m_buf(nullptr) {
}
/**
* @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:
* @return the wrapped pointer
*/
T* release() {
- T* temp=m_ptr; m_ptr=NULL; return temp;
+ T* temp=m_ptr; m_ptr=nullptr; return temp;
}
};
};