Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: include/AdblockPlus/ErrorCallback.h

Issue 10310030: Convert references to FileSystem & Co. into shared pointers (avoid use after free) (Closed)
Patch Set: Created April 18, 2013, 11:59 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: include/AdblockPlus/ErrorCallback.h
===================================================================
--- a/include/AdblockPlus/ErrorCallback.h
+++ b/include/AdblockPlus/ErrorCallback.h
@@ -1,16 +1,20 @@
#ifndef ADBLOCKPLUS_ERROR_CALLBACK_H
#define ADBLOCKPLUS_ERROR_CALLBACK_H
#include <string>
+#include "tr1_memory.h"
+
namespace AdblockPlus
{
class ErrorCallback
{
public:
virtual ~ErrorCallback();
virtual void operator()(const std::string& message) = 0;
};
+
+ typedef std::tr1::shared_ptr<ErrorCallback> ErrorCallbackPtr;
}
#endif

Powered by Google App Engine
This is Rietveld