Convert from NULL macro to nullptr.
[shibboleth/cpp-xmltooling.git] / xmltooling / util / ReplayCache.h
index 0f0d6e2..a95514d 100644 (file)
@@ -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.
@@ -43,9 +43,9 @@ namespace xmltooling {
          * The lifetime of the StorageService <strong>MUST</strong> be longer than
          * the lifetime of the ReplayCache.
          * 
-         * @param storage       pointer to a StorageService, or NULL to keep cache in memory
+         * @param storage       pointer to a StorageService, or nullptr to keep cache in memory
          */
-        ReplayCache(StorageService* storage=NULL);
+        ReplayCache(StorageService* storage=nullptr);
 
         virtual ~ReplayCache();
         
@@ -65,10 +65,7 @@ namespace xmltooling {
          * @param s         value to check
          * @param expires   time for disposal of value from cache
          */
-        bool check(const char* context, const XMLCh* s, time_t expires) {
-            auto_ptr_char temp(s);
-            return check(context, temp.get(), expires);
-        }
+        bool check(const char* context, const XMLCh* s, time_t expires);
         
     private:
         bool m_owned;