toolkit/xre/MacAutoreleasePool.h
author Sriram Ramasubramanian <sriram@mozilla.com>
Wed, 05 Sep 2012 14:53:54 -0700
changeset 104344 d89a71a8f5aead66d115b573aab0c8a47129ff12
parent 94484 f4157e8c410708d76703f19e4dfb61859bfe32d8
child 252586 91d6e262b662a0b4e47358665e222d3927337af9
permissions -rw-r--r--
Bug 785246: Make custom button inherit ShapedButton. [r=mfinkle]

/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

#ifndef MacAutoreleasePool_h_
#define MacAutoreleasePool_h_

// This needs to be #include-able from non-ObjC code in nsAppRunner.cpp
#ifdef __OBJC__
@class NSAutoreleasePool;
#else
class NSAutoreleasePool;
#endif

namespace mozilla {

class MacAutoreleasePool {
public:
  MacAutoreleasePool();
  ~MacAutoreleasePool();

private:
  NSAutoreleasePool *mPool;

  MacAutoreleasePool(const MacAutoreleasePool&);
  void operator=(const MacAutoreleasePool&);
};

}

#endif // MacAutoreleasePool_h_