mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-26 18:42:41 +01:00
Remove trailing whitespace (#3668)
This commit is contained in:
@@ -27,10 +27,10 @@ namespace Poco {
|
||||
|
||||
template <class C>
|
||||
class AutoReleasePool
|
||||
/// An AutoReleasePool implements simple garbage collection for
|
||||
/// An AutoReleasePool implements simple garbage collection for
|
||||
/// reference-counted objects.
|
||||
/// It temporarily takes ownership of reference-counted objects that
|
||||
/// nobody else wants to take ownership of and releases them
|
||||
/// nobody else wants to take ownership of and releases them
|
||||
/// at a later, appropriate point in time.
|
||||
///
|
||||
/// Note: The correct way to add an object hold by an AutoPtr<> to
|
||||
@@ -46,14 +46,14 @@ public:
|
||||
/// Creates the AutoReleasePool.
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
~AutoReleasePool()
|
||||
/// Destroys the AutoReleasePool and releases
|
||||
/// all objects it currently holds.
|
||||
{
|
||||
release();
|
||||
}
|
||||
|
||||
|
||||
void add(C* pObject)
|
||||
/// Adds the given object to the AutoReleasePool.
|
||||
/// The object's reference count is not modified
|
||||
@@ -61,7 +61,7 @@ public:
|
||||
if (pObject)
|
||||
_list.push_back(pObject);
|
||||
}
|
||||
|
||||
|
||||
void release()
|
||||
/// Releases all objects the AutoReleasePool currently holds
|
||||
/// by calling each object's release() method.
|
||||
@@ -72,10 +72,10 @@ public:
|
||||
_list.pop_front();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private:
|
||||
typedef std::list<C*> ObjectList;
|
||||
|
||||
|
||||
ObjectList _list;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user