Mercurial > hg > orthanc-authorization
diff Plugin/CachedAuthorizationService.h @ 36:8ada1b669194
replacing deprecated std::auto_ptr by std::unique_ptr
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 06 Jul 2020 16:38:30 +0200 |
parents | c304ffca5d80 |
children | 14594077ad3a |
line wrap: on
line diff
--- a/Plugin/CachedAuthorizationService.h Wed Jul 01 16:10:12 2020 +0200 +++ b/Plugin/CachedAuthorizationService.h Mon Jul 06 16:38:30 2020 +0200 @@ -21,6 +21,8 @@ #include "IAuthorizationService.h" #include "ICacheFactory.h" +#include <Compatibility.h> // For std::unique_ptr<> + #include <memory> namespace OrthancPlugins @@ -31,8 +33,8 @@ class CachedAuthorizationService : public IAuthorizationService { private: - std::auto_ptr<IAuthorizationService> decorated_; - std::auto_ptr<ICache> cache_; + std::unique_ptr<IAuthorizationService> decorated_; + std::unique_ptr<ICache> cache_; std::string ComputeKey(OrthancPluginHttpMethod method, const AccessedResource& access,