mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -06:00
use CM_NULLPTR
This commit is contained in:
committed by
Brad King
parent
b4b73f56a2
commit
1d6909a287
@@ -72,13 +72,13 @@ public:
|
||||
* skip. The remaining part of the input path is appended to the
|
||||
* "prefix" value to construct the final name in the archive.
|
||||
*/
|
||||
bool Add(std::string path, size_t skip = 0, const char* prefix = 0,
|
||||
bool Add(std::string path, size_t skip = 0, const char* prefix = CM_NULLPTR,
|
||||
bool recursive = true);
|
||||
|
||||
/** Returns true if there has been no error. */
|
||||
operator safe_bool() const
|
||||
{
|
||||
return this->Okay() ? &cmArchiveWrite::safe_bool_true : 0;
|
||||
return this->Okay() ? &cmArchiveWrite::safe_bool_true : CM_NULLPTR;
|
||||
}
|
||||
|
||||
/** Returns true if there has been an error. */
|
||||
|
||||
Reference in New Issue
Block a user