Back out 00fc7e525678 (bug 803543) for debug Mac build bustage

CLOSED TREE
This commit is contained in:
Phil Ringnalda 2013-08-09 18:51:22 -07:00
parent 0849600afa
commit dcb070e8f7
18 changed files with 17 additions and 62 deletions

View File

@ -42,10 +42,8 @@ protected:
private:
// Private constructor & destructor: prevent instances beyond my singleton,
// and prevent others from deleting my singleton.
MOZ_CONSTEXPR SMILBoolType() {}
#ifdef DEBUG
SMILBoolType() {}
~SMILBoolType() {}
#endif
};
} // namespace mozilla

View File

@ -43,10 +43,8 @@ protected:
private:
// Private constructor & destructor: prevent instances beyond my singleton,
// and prevent others from deleting my singleton.
MOZ_CONSTEXPR SMILEnumType() {}
#ifdef DEBUG
SMILEnumType() {}
~SMILEnumType() {}
#endif
};
} // namespace mozilla

View File

@ -37,10 +37,7 @@ public:
}
private:
MOZ_CONSTEXPR SMILIntegerType() {}
#ifdef DEBUG
~SMILIntegerType() {}
#endif
SMILIntegerType() {}
};
} // namespace mozilla

View File

@ -43,10 +43,8 @@ protected:
private:
// Private constructor & destructor: prevent instances beyond my singleton,
// and prevent others from deleting my singleton.
MOZ_CONSTEXPR SMILStringType() {}
#ifdef DEBUG
SMILStringType() {}
~SMILStringType() {}
#endif
};
} // namespace mozilla

View File

@ -6,7 +6,6 @@
#ifndef NS_ISMILTYPE_H_
#define NS_ISMILTYPE_H_
#include "mozilla/Attributes.h"
#include "nscore.h"
class nsSMILValue;
@ -213,17 +212,8 @@ protected:
* Protected destructor, to ensure that no one accidentally deletes an
* instance of this class.
* (The only instances in existence should be singletons - one per subclass.)
*
* This destructor and the destructors of subclasses are only defined in
* debug builds. For non-debug builds, we let the compiler define the
* default (public) constructor. The compiler understands that the default
* destructor doesn't necessarily need to be invoked (e.g. if there are no
* members to destroy) and so will avoid creating static destructors (and
* registering them with static *constructors*) in non-debug builds.
*/
#ifdef DEBUG
~nsISMILType() {}
#endif
};
#endif // NS_ISMILTYPE_H_

View File

@ -100,10 +100,8 @@ public:
private:
// Private constructor & destructor: prevent instances beyond my singleton,
// and prevent others from deleting my singleton.
MOZ_CONSTEXPR nsSMILCSSValueType() {}
#ifdef DEBUG
nsSMILCSSValueType() {}
~nsSMILCSSValueType() {}
#endif
};
#endif // NS_SMILCSSVALUETYPE_H_

View File

@ -41,10 +41,8 @@ protected:
private:
// Private constructor & destructor: prevent instances beyond my singleton,
// and prevent others from deleting my singleton.
MOZ_CONSTEXPR nsSMILFloatType() {}
#ifdef DEBUG
nsSMILFloatType() {}
~nsSMILFloatType() {}
#endif
};
#endif // NS_SMILFLOATTYPE_H_

View File

@ -44,10 +44,8 @@ protected:
private:
// Private constructor & destructor: prevent instances beyond my singleton,
// and prevent others from deleting my singleton.
MOZ_CONSTEXPR nsSMILNullType() {}
#ifdef DEBUG
nsSMILNullType() {}
~nsSMILNullType() {}
#endif
};
#endif // NS_SMILNULLTYPE_H_

View File

@ -45,10 +45,8 @@ protected:
private:
// Private constructor & destructor: prevent instances beyond my singleton,
// and prevent others from deleting my singleton.
MOZ_CONSTEXPR SVGIntegerPairSMILType() {}
#ifdef DEBUG
SVGIntegerPairSMILType() {}
~SVGIntegerPairSMILType() {}
#endif
};
} // namespace mozilla

View File

@ -93,10 +93,8 @@ protected:
private:
// Private constructor & destructor: prevent instances beyond my singleton,
// and prevent others from deleting my singleton.
MOZ_CONSTEXPR SVGLengthListSMILType() {}
#ifdef DEBUG
SVGLengthListSMILType() {}
~SVGLengthListSMILType() {}
#endif
};
} // namespace mozilla

View File

@ -73,10 +73,8 @@ public:
private:
// Private constructor & destructor: prevent instances beyond my singleton,
// and prevent others from deleting my singleton.
MOZ_CONSTEXPR SVGMotionSMILType() {}
#ifdef DEBUG
SVGMotionSMILType() {}
~SVGMotionSMILType() {}
#endif
};
} // namespace mozilla

View File

@ -47,10 +47,8 @@ protected:
private:
// Private constructor & destructor: prevent instances beyond my singleton,
// and prevent others from deleting my singleton.
MOZ_CONSTEXPR SVGNumberListSMILType() {}
#ifdef DEBUG
SVGNumberListSMILType() {}
~SVGNumberListSMILType() {}
#endif
};
} // namespace mozilla

View File

@ -40,10 +40,8 @@ protected:
private:
// Private constructor & destructor: prevent instances beyond my singleton,
// and prevent others from deleting my singleton.
MOZ_CONSTEXPR SVGNumberPairSMILType() {}
#ifdef DEBUG
SVGNumberPairSMILType() {}
~SVGNumberPairSMILType() {}
#endif
};
} // namespace mozilla

View File

@ -60,10 +60,8 @@ protected:
private:
// Private constructor & destructor: prevent instances beyond my singleton,
// and prevent others from deleting my singleton.
MOZ_CONSTEXPR SVGOrientSMILType() {}
#ifdef DEBUG
SVGOrientSMILType() {}
~SVGOrientSMILType() {}
#endif
};
} // namespace mozilla

View File

@ -51,10 +51,8 @@ protected:
private:
// Private constructor & destructor: prevent instances beyond my singleton,
// and prevent others from deleting my singleton.
MOZ_CONSTEXPR SVGPathSegListSMILType() {}
#ifdef DEBUG
SVGPathSegListSMILType() {}
~SVGPathSegListSMILType() {}
#endif
};
} // namespace mozilla

View File

@ -47,10 +47,8 @@ protected:
private:
// Private constructor & destructor: prevent instances beyond my singleton,
// and prevent others from deleting my singleton.
MOZ_CONSTEXPR SVGPointListSMILType() {}
#ifdef DEBUG
SVGPointListSMILType() {}
~SVGPointListSMILType() {}
#endif
};
} // namespace mozilla

View File

@ -123,10 +123,8 @@ public:
private:
// Private constructor & destructor: prevent instances beyond my singleton,
// and prevent others from deleting my singleton.
MOZ_CONSTEXPR SVGTransformListSMILType() {}
#ifdef DEBUG
SVGTransformListSMILType() {}
~SVGTransformListSMILType() {}
#endif
};
} // end namespace mozilla

View File

@ -40,10 +40,8 @@ protected:
private:
// Private constructor & destructor: prevent instances beyond my singleton,
// and prevent others from deleting my singleton.
MOZ_CONSTEXPR SVGViewBoxSMILType() {}
#ifdef DEBUG
SVGViewBoxSMILType() {}
~SVGViewBoxSMILType() {}
#endif
};
} // namespace mozilla