Bug 1109705 - Fix more bad implicit constructors in layout; r=roc

This commit is contained in:
Ehsan Akhgari 2014-12-10 17:47:09 -05:00
parent e1b3b9d76c
commit 82c69d955e
4 changed files with 6 additions and 6 deletions

View File

@ -532,7 +532,7 @@ protected:
struct ContinuationTraversingState
{
nsContainerFrame* mNextInFlow;
ContinuationTraversingState(nsContainerFrame* aFrame)
explicit ContinuationTraversingState(nsContainerFrame* aFrame)
: mNextInFlow(static_cast<nsContainerFrame*>(aFrame->GetNextInFlow()))
{ }
};

View File

@ -86,7 +86,7 @@ public:
// Structure that stores the current state of a frame manager for
// Save/Restore purposes.
struct SavedState {
SavedState(mozilla::WritingMode aWM)
explicit SavedState(mozilla::WritingMode aWM)
: mWritingMode(aWM)
, mOrigin(aWM)
{}

View File

@ -394,7 +394,7 @@ struct MOZ_STACK_CLASS nsRubyBaseContainerFrame::PullFrameState
ContinuationTraversingState mBase;
nsAutoTArray<ContinuationTraversingState, RTC_ARRAY_SIZE> mTexts;
PullFrameState(nsRubyBaseContainerFrame* aFrame);
explicit PullFrameState(nsRubyBaseContainerFrame* aFrame);
};
nscoord

View File

@ -62,7 +62,7 @@ nsRubyFrame::GetFrameName(nsAString& aResult) const
class MOZ_STACK_CLASS TextContainerIterator
{
public:
TextContainerIterator(nsRubyBaseContainerFrame* aBaseContainer);
explicit TextContainerIterator(nsRubyBaseContainerFrame* aBaseContainer);
void Next();
bool AtEnd() const { return !mFrame; }
nsRubyTextContainerFrame* GetTextContainer() const
@ -99,7 +99,7 @@ TextContainerIterator::Next()
class MOZ_STACK_CLASS AutoSetTextContainers
{
public:
AutoSetTextContainers(nsRubyBaseContainerFrame* aBaseContainer);
explicit AutoSetTextContainers(nsRubyBaseContainerFrame* aBaseContainer);
~AutoSetTextContainers();
private:
@ -130,7 +130,7 @@ AutoSetTextContainers::~AutoSetTextContainers()
class MOZ_STACK_CLASS SegmentEnumerator
{
public:
SegmentEnumerator(nsRubyFrame* aRubyFrame);
explicit SegmentEnumerator(nsRubyFrame* aRubyFrame);
void Next();
bool AtEnd() const { return !mBaseContainer; }