Bug 1068022 - Fix more bad implicit constructors in gfx; r=jrmuizel

This commit is contained in:
Ehsan Akhgari 2014-09-17 17:54:13 -04:00
parent bcdb506513
commit eb2cdb4cf9
2 changed files with 3 additions and 3 deletions

View File

@ -410,7 +410,7 @@ GetFrameTime() {
class MOZ_STACK_CLASS StateChangeNotificationBlocker {
public:
StateChangeNotificationBlocker(AsyncPanZoomController* aApzc)
explicit StateChangeNotificationBlocker(AsyncPanZoomController* aApzc)
: mApzc(aApzc)
{
ReentrantMonitorAutoEnter lock(mApzc->mMonitor);

View File

@ -41,7 +41,7 @@ template<typename T>
struct DeleteOnMainThreadTask: public nsRunnable
{
T* mToDelete;
DeleteOnMainThreadTask(T* aToDelete) : mToDelete(aToDelete) {}
explicit DeleteOnMainThreadTask(T* aToDelete) : mToDelete(aToDelete) {}
NS_IMETHOD Run() {
MOZ_ASSERT(NS_IsMainThread());
mToDelete->DeleteToBeCalledOnMainThread();
@ -87,4 +87,4 @@ private: \
::mozilla::layers::HelperForMainThreadDestruction mHelperForMainThreadDestruction; \
public:
#endif
#endif