diff options
Diffstat (limited to 'project2/cgi/cgiRequestID.cpp')
-rw-r--r-- | project2/cgi/cgiRequestID.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/project2/cgi/cgiRequestID.cpp b/project2/cgi/cgiRequestID.cpp index 60baa1e..038fff5 100644 --- a/project2/cgi/cgiRequestID.cpp +++ b/project2/cgi/cgiRequestID.cpp @@ -4,7 +4,7 @@ #include <scriptLoader.h> #include <scriptStorage.h> #include <gcrypt.h> -#include <scopeObject.h> +#include <scopeExit.h> #include <iomanip> /// Variable implementation that returns a unique ID for a page request @@ -19,7 +19,7 @@ class CgiRequestID : public VariableImplDyn { { gcry_md_hd_t state; gcry_md_open(&state, GCRY_MD_SHA1, 0); - ScopeObject gcryClose([&state] { gcry_md_close(state); }); + AdHoc::ScopeExit gcryClose([&state] { gcry_md_close(state); }); auto crc = static_cast<const CgiRequestContext *>(ec); gcryApplyString(state, crc->getRedirectURL()); |