summaryrefslogtreecommitdiff
path: root/project2/streams/viewStream.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'project2/streams/viewStream.cpp')
-rw-r--r--project2/streams/viewStream.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/project2/streams/viewStream.cpp b/project2/streams/viewStream.cpp
index 29917f6..17763ab 100644
--- a/project2/streams/viewStream.cpp
+++ b/project2/streams/viewStream.cpp
@@ -1,6 +1,6 @@
#include "scriptLoader.h"
#include "stream.h"
-#include <scopeObject.h>
+#include <scopeExit.h>
#include "ostreamWrapper.h"
#include "viewHost.h"
#include <boost/iostreams/stream.hpp>
@@ -37,7 +37,7 @@ class ViewStream : public Stream, public ViewHost {
ostreamWrapper * o = new ostreamWrapper(strm);
executeViews(ec);
t->addTarget(o, ec, NULL);
- ScopeObject remove([&t] { t->clearTargets(); });
+ AdHoc::ScopeExit remove([&t] { t->clearTargets(); });
doTransforms(ec);
}
}